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:
David Baker 2020-01-24 09:38:25 +00:00 committed by GitHub
commit 81caa12b16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,9 +44,12 @@ export default class CompleteSecurity extends React.Component {
await accessSecretStorage(async () => {
await cli.checkOwnCrossSigningTrust();
});
this.setState({
phase: PHASE_DONE,
});
if (cli.getCrossSigningId()) {
this.setState({
phase: PHASE_DONE,
});
}
} catch (e) {
// this will throw if the user hits cancel, so ignore
}