You've already forked matrix-react-sdk
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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user