Merge pull request #3917 from matrix-org/dbkr/complete_security_detect_success
Only say the session is verified if it is now verified
This commit is contained in:
commit
81caa12b16
1 changed files with 6 additions and 3 deletions
|
@ -44,9 +44,12 @@ export default class CompleteSecurity extends React.Component {
|
||||||
await accessSecretStorage(async () => {
|
await accessSecretStorage(async () => {
|
||||||
await cli.checkOwnCrossSigningTrust();
|
await cli.checkOwnCrossSigningTrust();
|
||||||
});
|
});
|
||||||
this.setState({
|
|
||||||
phase: PHASE_DONE,
|
if (cli.getCrossSigningId()) {
|
||||||
});
|
this.setState({
|
||||||
|
phase: PHASE_DONE,
|
||||||
|
});
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// this will throw if the user hits cancel, so ignore
|
// this will throw if the user hits cancel, so ignore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue