mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
evaluate on mount whether we need to call .verify()
as the request might be in phase started already.
This commit is contained in:
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
Block a user