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) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
this._hasVerifier = !!props.request.verifier;
|
||||
this._hasVerifier = false;
|
||||
}
|
||||
|
||||
renderQRPhase(pending) {
|
||||
|
@ -234,6 +234,7 @@ export default class VerificationPanel extends React.PureComponent {
|
|||
|
||||
componentDidMount() {
|
||||
this.props.request.on("change", this._onRequestChange);
|
||||
this._onRequestChange();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
Loading…
Reference in New Issue