You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
make sure we still have the room
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user