mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't read private parts
This commit is contained in:
parent
cdd1efe477
commit
2cbe349a4d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user