Check the deleted room exists before refreshing

This commit is contained in:
Kegan Dougal 2021-12-02 10:48:48 +00:00
parent 1aa145933a
commit 79cb21f4c0

View file

@ -368,7 +368,9 @@ export class Sync3 {
// However, I failed to reproduce this so ¯\_(ツ)_/¯¯
deletedRoomIDs.concat(addedRoomIDs).forEach((roomId) => {
let room = this.session.rooms.get(roomId);
if (room) {
room.forceRefresh();
}
})
// END sync v3 specific