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(); } }