Prefer canonical alias over room_id if available

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-28 12:58:46 +05:30
parent 2dcec6343d
commit 02d79b52a4

View file

@ -9,7 +9,7 @@ export class RoomInfoViewModel extends ViewModel {
} }
get roomId() { get roomId() {
return this._room.id; return this._roomSummary.canonicalAlias || this._room.id;
} }
get name() { get name() {