forked from mystiq/hydrogen-web
Check the deleted room exists before refreshing
This commit is contained in:
parent
1aa145933a
commit
79cb21f4c0
1 changed files with 3 additions and 1 deletions
|
@ -368,7 +368,9 @@ export class Sync3 {
|
||||||
// However, I failed to reproduce this so ¯\_(ツ)_/¯¯
|
// However, I failed to reproduce this so ¯\_(ツ)_/¯¯
|
||||||
deletedRoomIDs.concat(addedRoomIDs).forEach((roomId) => {
|
deletedRoomIDs.concat(addedRoomIDs).forEach((roomId) => {
|
||||||
let room = this.session.rooms.get(roomId);
|
let room = this.session.rooms.get(roomId);
|
||||||
room.forceRefresh();
|
if (room) {
|
||||||
|
room.forceRefresh();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// END sync v3 specific
|
// END sync v3 specific
|
||||||
|
|
Loading…
Reference in a new issue