mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 10:51:13 +02:00
make sure we still have the room
This commit is contained in:
parent
85b6f157c1
commit
d8f15e1159
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user