From c6009b1056e7afb96af23461704a144b7d50d899 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Fri, 13 Aug 2021 16:04:47 +0200 Subject: [PATCH] Make delegateCryptoCallbacks parameter optional on EncryptionSetupBuilder --- src/crypto/EncryptionSetup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/EncryptionSetup.ts b/src/crypto/EncryptionSetup.ts index cb208b9cc..442149b90 100644 --- a/src/crypto/EncryptionSetup.ts +++ b/src/crypto/EncryptionSetup.ts @@ -59,7 +59,7 @@ export class EncryptionSetupBuilder { * @param {Object.} accountData pre-existing account data, will only be read, not written. * @param {CryptoCallbacks} delegateCryptoCallbacks crypto callbacks to delegate to if the key isn't in cache yet */ - constructor(accountData: Record, delegateCryptoCallbacks: ICryptoCallbacks) { + constructor(accountData: Record, delegateCryptoCallbacks?: ICryptoCallbacks) { this.accountDataClientAdapter = new AccountDataClientAdapter(accountData); this.crossSigningCallbacks = new CrossSigningCallbacks(); this.ssssCryptoCallbacks = new SSSSCryptoCallbacks(delegateCryptoCallbacks);