Prefer canonical alias over room_id if available
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2dcec6343d
commit
02d79b52a4
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Reference in a new issue