mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +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,
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user