Fix manage room showing rooms as dms in some homeserver

Signed-off-by: ajbura <ajbura@gmail.com>
This commit is contained in:
ajbura 2022-02-18 19:28:55 +05:30
parent 96b6b56d95
commit 86bbaa437e

View file

@ -100,7 +100,7 @@ function SpaceManageItem({
bgColor={colorMXID(roomId)}
imageSrc={directs.has(roomId) ? imageSrc : null}
iconColor="var(--ic-surface-low)"
iconSrc={joinRuleToIconSrc(roomInfo.join_rule, isSpace)}
iconSrc={joinRuleToIconSrc((roomInfo.join_rules || roomInfo.join_rule), isSpace)}
size="extra-small"
/>
);