Merge pull request #3862 from matrix-org/dbkr/catch_exception_cancel_passphrase
Catch exception if passphrase dialog cancelled
This commit is contained in:
commit
6beae0ed39
1 changed files with 10 additions and 6 deletions
|
@ -40,12 +40,16 @@ export default class CompleteSecurity extends React.Component {
|
||||||
|
|
||||||
onStartClick = async () => {
|
onStartClick = async () => {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
await accessSecretStorage(async () => {
|
try {
|
||||||
await cli.checkOwnCrossSigningTrust();
|
await accessSecretStorage(async () => {
|
||||||
});
|
await cli.checkOwnCrossSigningTrust();
|
||||||
this.setState({
|
});
|
||||||
phase: PHASE_DONE,
|
this.setState({
|
||||||
});
|
phase: PHASE_DONE,
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
// this will throw if the user hits cancel, so ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onSkipClick = () => {
|
onSkipClick = () => {
|
||||||
|
|
Loading…
Reference in a new issue