mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix room view model being leaked when closing session
This commit is contained in:
parent
b29b776e9f
commit
fa8bec0b56
@ -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 New Issue
Block a user