mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-09 11:55:37 +01:00
room tile should be passed child options
This commit is contained in:
parent
5ab947e7de
commit
221b94adbf
@ -25,11 +25,11 @@ export class LeftPanelViewModel extends ViewModel {
|
||||
super(options);
|
||||
const {rooms, openRoom} = options;
|
||||
const roomTileVMs = rooms.mapValues((room, emitChange) => {
|
||||
return new RoomTileViewModel({
|
||||
return new RoomTileViewModel(this.childOptions({
|
||||
room,
|
||||
emitChange,
|
||||
emitOpen: openRoom
|
||||
});
|
||||
}));
|
||||
});
|
||||
this._roomListFilterMap = new ApplyMap(roomTileVMs);
|
||||
this._roomList = this._roomListFilterMap.sortValues((a, b) => a.compare(b));
|
||||
|
Loading…
x
Reference in New Issue
Block a user