From d8987ee54b647d5892554594c11b99fdcb3bf81c Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 13 Jun 2023 13:38:30 +0530 Subject: [PATCH] Crypto does not need to be a member --- src/matrix/ssss/SecretSharing.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/matrix/ssss/SecretSharing.ts b/src/matrix/ssss/SecretSharing.ts index 6be978bb..cedd8d3a 100644 --- a/src/matrix/ssss/SecretSharing.ts +++ b/src/matrix/ssss/SecretSharing.ts @@ -60,7 +60,6 @@ export class SecretSharing { private readonly ourUserId: string; private readonly olmEncryption: OlmEncryption; private readonly waitMap: Map, name: string }> = new Map(); - private readonly crypto: Crypto; private readonly encoding: Encoding; private readonly aesEncryption: AESEncryption; private readonly crossSigning: ObservableValue; @@ -74,11 +73,10 @@ export class SecretSharing { this.deviceTracker = options.deviceTracker; this.ourUserId = options.ourUserId; this.olmEncryption = options.olmEncryption; - this.crypto = options.crypto; this.encoding = options.encoding; this.crossSigning = options.crossSigning; this.logger = options.logger; - this.aesEncryption = new AESEncryption(this.storage, this.crypto, this.encoding); + this.aesEncryption = new AESEncryption(this.storage, options.crypto, this.encoding); (window as any).foo = this; this.init(); }