Add room alias or id as fallback in room profile

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-05 14:56:30 +05:30
parent 11f395f65f
commit c27b11bf25
2 changed files with 2 additions and 1 deletions

View file

@ -153,6 +153,7 @@ function RoomProfile({ roomId }) {
/>
)}
</div>
<Text variant="b3">{room.getCanonicalAlias() || room.roomId}</Text>
{roomTopic && <Text variant="b2">{twemojify(roomTopic, undefined, true)}</Text>}
</div>
);

View file

@ -21,7 +21,7 @@
}
}
& > *:last-child {
& > *:not(:first-child) {
margin-top: var(--sp-ultra-tight);
white-space: pre-wrap;
word-break: break-word;