This commit is contained in:
Bruno Windels 2022-02-10 20:07:27 +01:00
parent a442b4b009
commit 175f869c83

View file

@ -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);