polfan-server-js-client 0.2.42 → 0.2.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polfan-server-js-client",
3
- "version": "0.2.42",
3
+ "version": "0.2.43",
4
4
  "description": "JavaScript client library for handling communication with Polfan chat server.",
5
5
  "author": "Jarosław Żak",
6
6
  "license": "MIT",
@@ -214,7 +214,9 @@ export class RoomsManager {
214
214
  }
215
215
 
216
216
  private handleRoomUpdated(ev: RoomUpdated): void {
217
- this.list.set(ev.room);
217
+ if (this.list.has(ev.room)) {
218
+ this.list.set(ev.room);
219
+ }
218
220
  }
219
221
 
220
222
  private handleRoomDeleted(ev: RoomDeleted): void {