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 ) {}