From 22361bdf42998a6d362f586de108ae3ab22aadf7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Oct 2021 18:08:09 +0200 Subject: [PATCH] don't need to dispose room keys anymore, they are owned by the loader --- src/matrix/DeviceMessageHandler.js | 8 -------- src/matrix/Sync.js | 1 - 2 files changed, 9 deletions(-) diff --git a/src/matrix/DeviceMessageHandler.js b/src/matrix/DeviceMessageHandler.js index 1f79d517..0a606841 100644 --- a/src/matrix/DeviceMessageHandler.js +++ b/src/matrix/DeviceMessageHandler.js @@ -67,12 +67,4 @@ class SyncPreparation { this.newRoomKeys = newRoomKeys; this.newKeysByRoom = groupBy(newRoomKeys, r => r.roomId); } - - dispose() { - if (this.newRoomKeys) { - for (const k of this.newRoomKeys) { - k.dispose(); - } - } - } } diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index e010f90d..0be48007 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -464,7 +464,6 @@ class SessionSyncProcessState { dispose() { this.lock?.release(); - this.preparation?.dispose(); } }