mirror of https://github.com/vector-im/riot-web
evaluate on mount whether we need to call .verify()
as the request might be in phase started already.pull/21833/head
parent
d8ca9d0f13
commit
ad458722dc
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue