1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Update src/crypto/EncryptionSetup.ts

This commit is contained in:
Christian Paul
2021-08-16 10:36:21 +02:00
committed by GitHub
parent be980f4bc9
commit 3c7cdb1da8

View File

@@ -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?.getSecretStorageKey) {
if (this?.delegateCryptoCallbacks?.getSecretStorageKey) {
const result = await this.delegateCryptoCallbacks.
getSecretStorageKey({ keys }, name);
if (result) {