From fa8bec0b56dbec51c1af43898fca207141be6004 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 14 Oct 2020 11:26:10 +0200 Subject: [PATCH] fix room view model being leaked when closing session --- src/domain/session/room/RoomViewModel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 7c8df7bc..985ad32c 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -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;