Skip to content

Commit 5d1c01f

Browse files
committed
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 matrix-org#4507
1 parent af286ad commit 5d1c01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/keybackup/RestoreKeyBackupDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent {
201201
// `accessSecretStorage` may prompt for storage access as needed.
202202
const recoverInfo = await accessSecretStorage(async () => {
203203
return MatrixClientPeg.get().restoreKeyBackupWithSecretStorage(
204-
this.state.backupInfo,
204+
this.state.backupInfo, undefined, undefined,
205205
{ progressCallback: this._progressCallback },
206206
);
207207
});

0 commit comments

Comments
 (0)