From 3f9f0e98c7166af620dcc26297ebac0765ff6313 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Feb 2022 17:21:14 +0100 Subject: [PATCH] remove unused olm property in SenderKeyDecryption --- src/matrix/e2ee/olm/Decryption.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/e2ee/olm/Decryption.ts b/src/matrix/e2ee/olm/Decryption.ts index e437716a..06ad18dc 100644 --- a/src/matrix/e2ee/olm/Decryption.ts +++ b/src/matrix/e2ee/olm/Decryption.ts @@ -122,7 +122,7 @@ export class Decryption { async _decryptAllForSenderKey(senderKey: string, events: OlmEncryptedEvent[], timestamp: number, readSessionsTxn: Transaction): Promise { const sessions = await this._getSessions(senderKey, readSessionsTxn); - const senderKeyDecryption = new SenderKeyDecryption(senderKey, sessions, this.olm, timestamp); + const senderKeyDecryption = new SenderKeyDecryption(senderKey, sessions, timestamp); const results: DecryptionResult[] = []; const errors: DecryptionError[] = []; // events for a single senderKey need to be decrypted one by one @@ -238,7 +238,6 @@ class SenderKeyDecryption { constructor( public readonly senderKey: string, public readonly sessions: Session[], - private readonly olm: Olm, private readonly timestamp: number ) {}