From 70f0f91a17971c21feaab4377e34d3ff44e25f6a Mon Sep 17 00:00:00 2001 From: ajbura Date: Sat, 19 Feb 2022 19:41:36 +0530 Subject: [PATCH] Fix manage rooms not showing avatar for dms Signed-off-by: ajbura --- src/app/organisms/space-manage/SpaceManage.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/organisms/space-manage/SpaceManage.jsx b/src/app/organisms/space-manage/SpaceManage.jsx index a09341f..cf042da 100644 --- a/src/app/organisms/space-manage/SpaceManage.jsx +++ b/src/app/organisms/space-manage/SpaceManage.jsx @@ -83,6 +83,7 @@ function SpaceManageItem({ imageSrc = room.getAvatarFallbackMember()?.getAvatarUrl(mx.baseUrl, 24, 24, 'crop') || null; if (imageSrc === null) imageSrc = room.getAvatarUrl(mx.baseUrl, 24, 24, 'crop') || null; } + const isDM = directs.has(roomId); const handleOpen = () => { if (isSpace) selectTab(roomId); @@ -100,9 +101,13 @@ function SpaceManageItem({ );