@agentvault/agentvault 0.14.18 → 0.14.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel.d.ts.map +1 -1
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +14 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49468,6 +49468,20 @@ ${messageText}`;
|
|
|
49468
49468
|
if (msg.sender_device_id === this._deviceId) continue;
|
|
49469
49469
|
if (this._syncMessageIds.has(msg.id)) continue;
|
|
49470
49470
|
this._syncMessageIds.add(msg.id);
|
|
49471
|
+
if (this._persisted?.rooms) {
|
|
49472
|
+
let isRoomConv = false;
|
|
49473
|
+
for (const room of Object.values(this._persisted.rooms)) {
|
|
49474
|
+
if (room.conversationIds?.includes(msg.conversation_id)) {
|
|
49475
|
+
isRoomConv = true;
|
|
49476
|
+
break;
|
|
49477
|
+
}
|
|
49478
|
+
}
|
|
49479
|
+
if (isRoomConv) {
|
|
49480
|
+
this._persisted.lastMessageTimestamp = msg.created_at;
|
|
49481
|
+
since = msg.created_at;
|
|
49482
|
+
continue;
|
|
49483
|
+
}
|
|
49484
|
+
}
|
|
49471
49485
|
const session = this._sessions.get(msg.conversation_id);
|
|
49472
49486
|
if (!session) {
|
|
49473
49487
|
console.warn(
|