Merge pull request #3986 from matrix-org/bwindels/fixverifyingdevices

Fix verifying individual devices
This commit is contained in:
J. Ryan Stinnett 2020-01-29 17:46:09 +00:00 committed by GitHub
commit dcb7878f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ export default class VerificationPanel extends React.PureComponent {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = {}; this.state = {};
this._hasVerifier = !!props.request.verifier; this._hasVerifier = false;
} }
renderQRPhase(pending) { renderQRPhase(pending) {
@ -234,6 +234,7 @@ export default class VerificationPanel extends React.PureComponent {
componentDidMount() { componentDidMount() {
this.props.request.on("change", this._onRequestChange); this.props.request.on("change", this._onRequestChange);
this._onRequestChange();
} }
componentWillUnmount() { componentWillUnmount() {