Merge pull request #3123 from matrix-org/travis/sas-timeouts
Consider cancelled verifications when mounting IncomingSasDialogpull/21833/head
commit
2a0660c545
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue