mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Fallback to canonical alias if no names found
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0d11f85ab3
commit
191eb09a76
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user