Only say the session is verified if it is now verified

This commit is contained in:
David Baker 2020-01-23 19:19:12 +00:00
parent ce32c12303
commit 74b678d0ff

View file

@ -44,9 +44,12 @@ export default class CompleteSecurity extends React.Component {
await accessSecretStorage(async () => { await accessSecretStorage(async () => {
await cli.checkOwnCrossSigningTrust(); await cli.checkOwnCrossSigningTrust();
}); });
if (cli.getCrossSigningId()) {
this.setState({ this.setState({
phase: PHASE_DONE, 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
} }