forked from mystiq/hydrogen-web
also adjust m.direct if the room has already been replaced
This commit is contained in:
parent
2765f48a64
commit
d65b25f084
1 changed files with 4 additions and 2 deletions
|
@ -622,8 +622,10 @@ export class Session {
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
// we should now know the roomId, check if the room was synced before we received
|
// 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.
|
// the room id. Replace the room being created with the synced room.
|
||||||
if (roomBeingCreated.roomId && !!this.rooms.get(roomBeingCreated.roomId)) {
|
if (roomBeingCreated.roomId) {
|
||||||
|
if (!!this.rooms.get(roomBeingCreated.roomId)) {
|
||||||
this._tryReplaceRoomBeingCreated(roomBeingCreated.roomId, log);
|
this._tryReplaceRoomBeingCreated(roomBeingCreated.roomId, log);
|
||||||
|
}
|
||||||
await roomBeingCreated.adjustDirectMessageMapIfNeeded(this._user, this._storage, this._hsApi, log);
|
await roomBeingCreated.adjustDirectMessageMapIfNeeded(this._user, this._storage, this._hsApi, log);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue