mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-05-30 20:24:50 +03:00
Merge pull request #1847 from matrix-org/jaller94-patch-2
SSSSCryptoCallbacks.getSecretStorageKey: Test if delegateCryptoCallbacks has getSecretStorageKey
This commit is contained in:
commit
92d822d494
@ -365,7 +365,7 @@ class SSSSCryptoCallbacks {
|
|||||||
}
|
}
|
||||||
// if we don't have the key cached yet, ask
|
// if we don't have the key cached yet, ask
|
||||||
// for it to the general crypto callbacks and cache it
|
// for it to the general crypto callbacks and cache it
|
||||||
if (this.delegateCryptoCallbacks) {
|
if (this?.delegateCryptoCallbacks?.getSecretStorageKey) {
|
||||||
const result = await this.delegateCryptoCallbacks.
|
const result = await this.delegateCryptoCallbacks.
|
||||||
getSecretStorageKey({ keys }, name);
|
getSecretStorageKey({ keys }, name);
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user