make sure we still have the room

pull/21833/head
Bruno Windels 2018-08-30 12:06:34 +02:00
parent 85b6f157c1
commit d8f15e1159
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export default class DMRoomMap {
if (selfRoomIds) { if (selfRoomIds) {
const guessedUserIds = selfRoomIds.map((roomId) => { const guessedUserIds = selfRoomIds.map((roomId) => {
const room = this.matrixClient.getRoom(roomId); const room = this.matrixClient.getRoom(roomId);
return room.guessDMUserId(); return room && room.guessDMUserId();
}); });
delete userToRooms[myUserId]; delete userToRooms[myUserId];
guessedUserIds.forEach((userId, i) => { guessedUserIds.forEach((userId, i) => {