diff --git a/src/crypto/EncryptionSetup.ts b/src/crypto/EncryptionSetup.ts index 442149b90..ebbfe5941 100644 --- a/src/crypto/EncryptionSetup.ts +++ b/src/crypto/EncryptionSetup.ts @@ -365,7 +365,7 @@ class SSSSCryptoCallbacks { } // if we don't have the key cached yet, ask // for it to the general crypto callbacks and cache it - if (this.delegateCryptoCallbacks) { + if (this?.delegateCryptoCallbacks?.getSecretStorageKey) { const result = await this.delegateCryptoCallbacks. getSecretStorageKey({ keys }, name); if (result) {