forked from mystiq/hydrogen-web
fix room view model being leaked when closing session
This commit is contained in:
parent
b29b776e9f
commit
fa8bec0b56
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ export class RoomViewModel extends ViewModel {
|
|||
|
||||
dispose() {
|
||||
super.dispose();
|
||||
this._room.off("change", this._onRoomChange);
|
||||
if (this._clearUnreadTimout) {
|
||||
this._clearUnreadTimout.abort();
|
||||
this._clearUnreadTimout = null;
|
||||
|
|
Loading…
Reference in a new issue