Catch exception if passphrase dialog cancelled
As hopefully explained by comment
This commit is contained in:
parent
1a6be3addd
commit
d69c5f6a1b
1 changed files with 10 additions and 6 deletions
|
@ -40,12 +40,16 @@ export default class CompleteSecurity extends React.Component {
|
|||
|
||||
onStartClick = async () => {
|
||||
const cli = MatrixClientPeg.get();
|
||||
await accessSecretStorage(async () => {
|
||||
await cli.checkOwnCrossSigningTrust();
|
||||
});
|
||||
this.setState({
|
||||
phase: PHASE_DONE,
|
||||
});
|
||||
try {
|
||||
await accessSecretStorage(async () => {
|
||||
await cli.checkOwnCrossSigningTrust();
|
||||
});
|
||||
this.setState({
|
||||
phase: PHASE_DONE,
|
||||
});
|
||||
} catch (e) {
|
||||
// this will throw if the user hits cancel, so ignore
|
||||
}
|
||||
}
|
||||
|
||||
onSkipClick = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue