1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

evaluate on mount whether we need to call .verify()

as the request might be in phase started already.
This commit is contained in:
Bruno Windels
2020-01-29 17:58:23 +01:00
parent d8ca9d0f13
commit ad458722dc

View File

@@ -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() {