mirror of https://github.com/vector-im/riot-web
make sure we still have the room
parent
85b6f157c1
commit
d8f15e1159
|
@ -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 New Issue