1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

fix restoreKeyBackupWithSecretStorage for rust

This commit is contained in:
Valere
2023-09-22 13:17:47 +02:00
committed by valere
parent 4947a0cb64
commit f6c99b1d25
3 changed files with 61 additions and 1 deletions

View File

@@ -3719,7 +3719,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
targetSessionId?: string,
opts?: IKeyBackupRestoreOpts,
): Promise<IKeyBackupRestoreResult> {
if (!this.crypto) {
if (!this.cryptoBackend) {
throw new Error("End-to-end encryption disabled");
}
const storedKey = await this.secretStorage.get("m.megolm_backup.v1");