From 191eb09a76f5c6a6f0b725a0dd8ebf7a8d90b961 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 24 May 2021 22:50:17 +0530 Subject: [PATCH] Fallback to canonical alias if no names found Signed-off-by: RMidhunSuresh --- src/domain/session/rightpanel/RoomInfoViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/rightpanel/RoomInfoViewModel.js b/src/domain/session/rightpanel/RoomInfoViewModel.js index c132acf8..951f10c0 100644 --- a/src/domain/session/rightpanel/RoomInfoViewModel.js +++ b/src/domain/session/rightpanel/RoomInfoViewModel.js @@ -12,7 +12,7 @@ export class RoomInfoViewModel extends ViewModel { } get name() { - return this._roomSummary.name || this._room._heroes._roomName; + return this._roomSummary.name || this._room._heroes?._roomName || this._roomSummary.canonicalAlias; } get isEncrypted() {