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
commit 93674ec781
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}