Fallback to canonical alias if no names found
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0d11f85ab3
commit
191eb09a76
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export class RoomInfoViewModel extends ViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
return this._roomSummary.name || this._room._heroes._roomName;
|
return this._roomSummary.name || this._room._heroes?._roomName || this._roomSummary.canonicalAlias;
|
||||||
}
|
}
|
||||||
|
|
||||||
get isEncrypted() {
|
get isEncrypted() {
|
||||||
|
|
Reference in a new issue