Merge pull request #3123 from matrix-org/travis/sas-timeouts

Consider cancelled verifications when mounting IncomingSasDialog
This commit is contained in:
Travis Ralston 2019-06-20 14:29:20 -06:00 committed by GitHub
commit 2a0660c545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,15 @@ export default class IncomingSasDialog extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
let phase = PHASE_START;
if (this.props.verifier.cancelled) {
console.log("Verifier was cancelled in the background.");
phase = PHASE_CANCELLED;
}
this._showSasEvent = null; this._showSasEvent = null;
this.state = { this.state = {
phase: PHASE_START, phase: phase,
sasVerified: false, sasVerified: false,
opponentProfile: null, opponentProfile: null,
opponentProfileError: null, opponentProfileError: null,