From 7e38c3ea88fe2a22a0328d6f25cb2bae526169f6 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 23 May 2021 20:27:58 +0530 Subject: [PATCH] Remove right panel on grid update if needed Signed-off-by: RMidhunSuresh --- src/domain/session/SessionViewModel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index b32355ef..1194bff4 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -124,6 +124,8 @@ export class SessionViewModel extends ViewModel { _updateGrid(roomIds) { const changed = !(this._gridViewModel && roomIds); const currentRoomId = this.navigation.path.get("room"); + // Close right-panel if needed + this._toggleRoomInformationPanel(); if (roomIds) { if (!this._gridViewModel) { this._gridViewModel = this.track(new RoomGridViewModel(this.childOptions({