Add a comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
4b2a9a6bf7
commit
87622fb8ea
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ export function avatarUrlForRoom(room: Room, width: number, height: number, resi
|
||||||
// space rooms cannot be DMs so skip the rest
|
// space rooms cannot be DMs so skip the rest
|
||||||
if (SettingsStore.getValue("feature_spaces") && room.isSpaceRoom()) return null;
|
if (SettingsStore.getValue("feature_spaces") && room.isSpaceRoom()) return null;
|
||||||
|
|
||||||
|
// If the room is not a DM don't fallback to a member avatar
|
||||||
if (!DMRoomMap.shared().getUserIdForRoomId(room.roomId)) return null;
|
if (!DMRoomMap.shared().getUserIdForRoomId(room.roomId)) return null;
|
||||||
|
|
||||||
// If there are only two members in the DM use the avatar of the other member
|
// If there are only two members in the DM use the avatar of the other member
|
||||||
|
|
Loading…
Reference in a new issue