1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Catch exception if passphrase dialog cancelled

As hopefully explained by comment
This commit is contained in:
David Baker
2020-01-17 14:46:20 +00:00
parent 1a6be3addd
commit d69c5f6a1b

View File

@@ -40,12 +40,16 @@ export default class CompleteSecurity extends React.Component {
onStartClick = async () => { onStartClick = async () => {
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();
try {
await accessSecretStorage(async () => { await accessSecretStorage(async () => {
await cli.checkOwnCrossSigningTrust(); await cli.checkOwnCrossSigningTrust();
}); });
this.setState({ this.setState({
phase: PHASE_DONE, phase: PHASE_DONE,
}); });
} catch (e) {
// this will throw if the user hits cancel, so ignore
}
} }
onSkipClick = () => { onSkipClick = () => {