mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +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() {
|
dispose() {
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
this._room.off("change", this._onRoomChange);
|
||||||
if (this._clearUnreadTimout) {
|
if (this._clearUnreadTimout) {
|
||||||
this._clearUnreadTimout.abort();
|
this._clearUnreadTimout.abort();
|
||||||
this._clearUnreadTimout = null;
|
this._clearUnreadTimout = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user