@agentvault/agentvault 0.14.28 → 0.14.30

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/index.js CHANGED
@@ -47176,6 +47176,8 @@ var init_channel = __esm({
47176
47176
  if (existingRoom) {
47177
47177
  delete existingRoom.ownSenderKeyChain;
47178
47178
  delete existingRoom.peerSenderKeyState;
47179
+ delete existingRoom.encryptionMode;
47180
+ existingRoom.distributedTo = [];
47179
47181
  }
47180
47182
  if (this._persisted) {
47181
47183
  this._persisted.lastMessageTimestamp = (/* @__PURE__ */ new Date()).toISOString();
@@ -47260,9 +47262,11 @@ var init_channel = __esm({
47260
47262
  }
47261
47263
  await this._persistState();
47262
47264
  this.emit("room_joined", { roomId: roomData.roomId, name: roomData.name });
47263
- this._distributeSenderKey(roomData.roomId).catch((err) => {
47264
- console.warn(`[SecureChannel] Sender key distribution failed for room ${roomData.roomId}:`, err);
47265
- });
47265
+ if (!roomData.forceRekey) {
47266
+ this._distributeSenderKey(roomData.roomId).catch((err) => {
47267
+ console.warn(`[SecureChannel] Sender key distribution failed for room ${roomData.roomId}:`, err);
47268
+ });
47269
+ }
47266
47270
  }
47267
47271
  /**
47268
47272
  * Send an encrypted message to all members of a room.