From 2cbe349a4dc353b1d79a751f52cd5658d2a496a5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 8 Oct 2020 14:21:34 +0200 Subject: [PATCH] don't read private parts --- src/domain/session/RoomGridViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/RoomGridViewModel.js b/src/domain/session/RoomGridViewModel.js index 4c169c3a..9d91cd99 100644 --- a/src/domain/session/RoomGridViewModel.js +++ b/src/domain/session/RoomGridViewModel.js @@ -73,7 +73,7 @@ export class RoomGridViewModel extends ViewModel { * @package */ tryFocusRoom(roomId) { - const index = this._viewModels.findIndex(vms => vms?.vm._room.id === roomId); + const index = this._viewModels.findIndex(vms => vms?.vm.id === roomId); if (index >= 0) { this.setFocusIndex(index); return true;