@agentvault/agentvault 0.14.29 → 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
@@ -47262,9 +47262,11 @@ var init_channel = __esm({
47262
47262
  }
47263
47263
  await this._persistState();
47264
47264
  this.emit("room_joined", { roomId: roomData.roomId, name: roomData.name });
47265
- this._distributeSenderKey(roomData.roomId).catch((err) => {
47266
- console.warn(`[SecureChannel] Sender key distribution failed for room ${roomData.roomId}:`, err);
47267
- });
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
+ }
47268
47270
  }
47269
47271
  /**
47270
47272
  * Send an encrypted message to all members of a room.