First special treatment of space-rooms

This commit is contained in:
Michael Telatynski
2021-02-19 14:20:57 +00:00
parent 6b3f05a3cd
commit 79daf615e4
4 changed files with 15 additions and 8 deletions

View File

@@ -165,6 +165,9 @@ export function avatarUrlForRoom(room: Room, width: number, height: number, resi
return explicitRoomAvatar;
}
// space rooms cannot be DMs so skip the rest
if (room.isSpaceRoom()) return null;
let otherMember = null;
const otherUserId = DMRoomMap.shared().getUserIdForRoomId(room.roomId);
if (otherUserId) {