You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
check if verifier sasEvent was already set on mount
this allow the verification panel to fully recover the UI state from an on-going verification request
This commit is contained in:
@@ -258,7 +258,11 @@ export default class VerificationPanel extends React.PureComponent {
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
this.props.request.on("change", this._onRequestChange);
|
||||
const {request} = this.props;
|
||||
request.on("change", this._onRequestChange);
|
||||
if (request.verifier) {
|
||||
this.setState({sasEvent: request.verifier.sasEvent});
|
||||
}
|
||||
this._onRequestChange();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user