mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +01:00
Prefer canonical alias over room_id if available
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2dcec6343d
commit
02d79b52a4
@ -9,7 +9,7 @@ export class RoomInfoViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
get roomId() {
|
||||
return this._room.id;
|
||||
return this._roomSummary.canonicalAlias || this._room.id;
|
||||
}
|
||||
|
||||
get name() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user