From 221b94adbf21af2ece940d9829a4bbe403f07cf9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 6 Oct 2020 18:05:38 +0200 Subject: [PATCH] room tile should be passed child options --- src/domain/session/leftpanel/LeftPanelViewModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/leftpanel/LeftPanelViewModel.js b/src/domain/session/leftpanel/LeftPanelViewModel.js index 50864b4c..b90bacf6 100644 --- a/src/domain/session/leftpanel/LeftPanelViewModel.js +++ b/src/domain/session/leftpanel/LeftPanelViewModel.js @@ -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));