1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-14 19:02:33 +03:00

Merge pull request #4070 from matrix-org/bwindels/oneverifrequest

Find existing requests when starting a new verification request
This commit is contained in:
Bruno Windels
2020-02-14 15:33:27 +00:00
committed by GitHub
4 changed files with 27 additions and 7 deletions

View File

@@ -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();
}