From 02d79b52a4ad77738606da51f0d85bc6e1cc4690 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 28 May 2021 12:58:46 +0530 Subject: [PATCH] Prefer canonical alias over room_id if available 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 c74ae826..dd74e110 100644 --- a/src/domain/session/rightpanel/RoomInfoViewModel.js +++ b/src/domain/session/rightpanel/RoomInfoViewModel.js @@ -9,7 +9,7 @@ export class RoomInfoViewModel extends ViewModel { } get roomId() { - return this._room.id; + return this._roomSummary.canonicalAlias || this._room.id; } get name() {