mirror of https://github.com/vector-im/riot-web
Merge pull request #4703 from matrix-org/bwindels/preventbootstrapfromkeybackuprestore-rc
Prevent (double) 4S bootstrap from RestoreKeyBackupDialogpull/21833/head
commit
737c31a54c
|
@ -243,8 +243,10 @@ export default class RestoreKeyBackupDialog extends React.PureComponent {
|
|||
loadError: null,
|
||||
});
|
||||
try {
|
||||
const backupInfo = await MatrixClientPeg.get().getKeyBackupVersion();
|
||||
const backupKeyStored = await MatrixClientPeg.get().isKeyBackupKeyStored();
|
||||
const cli = MatrixClientPeg.get();
|
||||
const backupInfo = await cli.getKeyBackupVersion();
|
||||
const has4S = await cli.hasSecretStorageKey();
|
||||
const backupKeyStored = has4S && await cli.isKeyBackupKeyStored();
|
||||
this.setState({
|
||||
backupInfo,
|
||||
backupKeyStored,
|
||||
|
|
Loading…
Reference in New Issue