mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-02 17:21:25 +01:00
Merge pull request #3123 from matrix-org/travis/sas-timeouts
Consider cancelled verifications when mounting IncomingSasDialog
This commit is contained in:
commit
2a0660c545
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user