Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3123 from matrix-org/travis/sas-timeouts
Browse files Browse the repository at this point in the history
Consider cancelled verifications when mounting IncomingSasDialog
  • Loading branch information
turt2live authored Jun 20, 2019
2 parents 55eec80 + 0f8dd10 commit 2a0660c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/views/dialogs/IncomingSasDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ export default class IncomingSasDialog extends React.Component {
constructor(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.state = {
phase: PHASE_START,
phase: phase,
sasVerified: false,
opponentProfile: null,
opponentProfileError: null,
Expand Down

0 comments on commit 2a0660c

Please sign in to comment.