From faeb6e206ad1274d711122aa8bcd5c1b0f5098f5 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 23 Nov 2021 16:18:52 +1100 Subject: [PATCH] fix a bug releasing the decrypted attachment blobs too early --- ts/session/crypto/DecryptedAttachmentsManager.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/ts/session/crypto/DecryptedAttachmentsManager.ts b/ts/session/crypto/DecryptedAttachmentsManager.ts index 5e578d291..54b22b390 100644 --- a/ts/session/crypto/DecryptedAttachmentsManager.ts +++ b/ts/session/crypto/DecryptedAttachmentsManager.ts @@ -32,8 +32,6 @@ export const cleanUpOldDecryptedMedias = () => { countKept++; } } - urlToDecryptedBlobMap.clear(); - urlToDecryptingPromise.clear(); window?.log?.info(`Clean medias blobs: cleaned/kept: ${countCleaned}:${countKept}`); };