Fallback to canonical alias if no names found

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-24 22:50:17 +05:30
parent 0d11f85ab3
commit 191eb09a76

View file

@ -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() {