mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix leaking left panel view model after closing session
This commit is contained in:
parent
de83d7740b
commit
6ad7be8726
@ -31,9 +31,9 @@ export class SessionViewModel extends ViewModel {
|
|||||||
reconnector: sessionContainer.reconnector,
|
reconnector: sessionContainer.reconnector,
|
||||||
session: sessionContainer.session,
|
session: sessionContainer.session,
|
||||||
})));
|
})));
|
||||||
this._leftPanelViewModel = new LeftPanelViewModel(this.childOptions({
|
this._leftPanelViewModel = this.track(new LeftPanelViewModel(this.childOptions({
|
||||||
rooms: this._sessionContainer.session.rooms
|
rooms: this._sessionContainer.session.rooms
|
||||||
}));
|
})));
|
||||||
this._currentRoomViewModel = null;
|
this._currentRoomViewModel = null;
|
||||||
this._gridViewModel = null;
|
this._gridViewModel = null;
|
||||||
this._setupNavigation();
|
this._setupNavigation();
|
||||||
|
Loading…
Reference in New Issue
Block a user