fix room view model being leaked when closing session

This commit is contained in:
Bruno Windels 2020-10-14 11:26:10 +02:00
parent b29b776e9f
commit fa8bec0b56

View File

@ -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;