diff --git a/src/client.js b/src/client.js index 82b78f5d4d4..f432508ae0d 100644 --- a/src/client.js +++ b/src/client.js @@ -1822,7 +1822,7 @@ MatrixClient.prototype.restoreKeyBackupWithSecretStorage = async function( // store the fixed version const fixedKey = fixBackupKey(storedKey); if (fixedKey) { - const [keyId] = await this.getSecretStorageKey(); + const [keyId] = await this._crypto.getSecretStorageKey(); await this.storeSecret("m.megolm_backup.v1", fixedKey, [keyId]); }