mirror of https://github.com/vector-im/riot-web
flip sense of 'force' flag in if statement
parent
5382a52519
commit
c8e65bfa65
|
@ -225,20 +225,20 @@ export default class CreateSecretStorageDialog extends React.PureComponent {
|
||||||
const { force } = this.props;
|
const { force } = this.props;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!force) {
|
if (force) {
|
||||||
await cli.bootstrapSecretStorage({
|
|
||||||
authUploadDeviceSigningKeys: this._doBootstrapUIAuth,
|
|
||||||
createSecretStorageKey: async () => this._keyInfo,
|
|
||||||
keyBackupInfo: this.state.backupInfo,
|
|
||||||
setupNewKeyBackup: !this.state.backupInfo && this.state.useKeyBackup,
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
await cli.bootstrapSecretStorage({
|
await cli.bootstrapSecretStorage({
|
||||||
authUploadDeviceSigningKeys: this._doBootstrapUIAuth,
|
authUploadDeviceSigningKeys: this._doBootstrapUIAuth,
|
||||||
createSecretStorageKey: async () => this._keyInfo,
|
createSecretStorageKey: async () => this._keyInfo,
|
||||||
setupNewKeyBackup: true,
|
setupNewKeyBackup: true,
|
||||||
setupNewSecretStorage: true,
|
setupNewSecretStorage: true,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
await cli.bootstrapSecretStorage({
|
||||||
|
authUploadDeviceSigningKeys: this._doBootstrapUIAuth,
|
||||||
|
createSecretStorageKey: async () => this._keyInfo,
|
||||||
|
keyBackupInfo: this.state.backupInfo,
|
||||||
|
setupNewKeyBackup: !this.state.backupInfo && this.state.useKeyBackup,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
phase: PHASE_DONE,
|
phase: PHASE_DONE,
|
||||||
|
|
Loading…
Reference in New Issue