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;