From 175f869c836f26fed2c090eb50ab34b3a8b45141 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 10 Feb 2022 20:07:27 +0100 Subject: [PATCH] fix lint --- src/matrix/Session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 778d2866..83a2df02 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -623,7 +623,7 @@ export class Session { // we should now know the roomId, check if the room was synced before we received // the room id. Replace the room being created with the synced room. if (roomBeingCreated.roomId) { - if (!!this.rooms.get(roomBeingCreated.roomId)) { + if (this.rooms.get(roomBeingCreated.roomId)) { this._tryReplaceRoomBeingCreated(roomBeingCreated.roomId, log); } await roomBeingCreated.adjustDirectMessageMapIfNeeded(this._user, this._storage, this._hsApi, log);