forked from mystiq/hydrogen-web
room tile should be passed child options
This commit is contained in:
parent
5ab947e7de
commit
221b94adbf
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue