mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Fix key backup restore with SSSS
The room / session ID params come after the backupInfo for restoring from SSSS so the options object was being passed into the wrong param. Roll on TypeScript. This meant restoring backups worked fine when the key was cached but failed when it wasn't. Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/4507
This commit is contained in:
parent
26e6447be5
commit
0201655538
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent {
|
||||||
// `accessSecretStorage` may prompt for storage access as needed.
|
// `accessSecretStorage` may prompt for storage access as needed.
|
||||||
const recoverInfo = await accessSecretStorage(async () => {
|
const recoverInfo = await accessSecretStorage(async () => {
|
||||||
return MatrixClientPeg.get().restoreKeyBackupWithSecretStorage(
|
return MatrixClientPeg.get().restoreKeyBackupWithSecretStorage(
|
||||||
this.state.backupInfo,
|
this.state.backupInfo, undefined, undefined,
|
||||||
{ progressCallback: this._progressCallback },
|
{ progressCallback: this._progressCallback },
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue