Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d8f15e1

Browse files
committed
make sure we still have the room
1 parent 85b6f15 commit d8f15e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/DMRoomMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default class DMRoomMap {
100100
if (selfRoomIds) {
101101
const guessedUserIds = selfRoomIds.map((roomId) => {
102102
const room = this.matrixClient.getRoom(roomId);
103-
return room.guessDMUserId();
103+
return room && room.guessDMUserId();
104104
});
105105
delete userToRooms[myUserId];
106106
guessedUserIds.forEach((userId, i) => {

0 commit comments

Comments
 (0)