mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 12:58:53 +03:00
make sure we still have the room
This commit is contained in:
parent
85b6f157c1
commit
d8f15e1159
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ export default class DMRoomMap {
|
|||
if (selfRoomIds) {
|
||||
const guessedUserIds = selfRoomIds.map((roomId) => {
|
||||
const room = this.matrixClient.getRoom(roomId);
|
||||
return room.guessDMUserId();
|
||||
return room && room.guessDMUserId();
|
||||
});
|
||||
delete userToRooms[myUserId];
|
||||
guessedUserIds.forEach((userId, i) => {
|
||||
|
|
Loading…
Reference in a new issue