don't read private parts

This commit is contained in:
Bruno Windels 2020-10-08 14:21:34 +02:00
parent cdd1efe477
commit 2cbe349a4d

View file

@ -73,7 +73,7 @@ export class RoomGridViewModel extends ViewModel {
* @package * @package
*/ */
tryFocusRoom(roomId) { 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) { if (index >= 0) {
this.setFocusIndex(index); this.setFocusIndex(index);
return true; return true;