fix leaking left panel view model after closing session

This commit is contained in:
Bruno Windels 2020-10-14 11:34:34 +02:00
parent de83d7740b
commit 6ad7be8726

View file

@ -31,9 +31,9 @@ export class SessionViewModel extends ViewModel {
reconnector: sessionContainer.reconnector,
session: sessionContainer.session,
})));
this._leftPanelViewModel = new LeftPanelViewModel(this.childOptions({
this._leftPanelViewModel = this.track(new LeftPanelViewModel(this.childOptions({
rooms: this._sessionContainer.session.rooms
}));
})));
this._currentRoomViewModel = null;
this._gridViewModel = null;
this._setupNavigation();