show message after clicking "they match"

pull/21833/head
Bruno Windels 2019-12-20 21:30:18 +01:00
parent dd633bd8fe
commit 2dd1e93d84
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,9 @@ export default class VerificationPanel extends React.PureComponent {
} else if (request.ready) {
return (<p>{request.otherUserId} is ready, start <AccessibleButton kind="primary" onClick={this._startSAS}>Verify by emoji</AccessibleButton></p>);
} else if (request.started) {
if (this.state.sasEvent) {
if (this.state.sasWaitingForOtherParty) {
return <p>Waiting for {request.otherUserId} to confirm ...</p>;
} else if (this.state.sasEvent) {
const VerificationShowSas = sdk.getComponent('views.verification.VerificationShowSas');
return (<div>
<VerificationShowSas
@ -66,6 +68,7 @@ export default class VerificationPanel extends React.PureComponent {
};
_onSasMatchesClick = () => {
this.setState({sasWaitingForOtherParty: true});
this.state.sasEvent.confirm();
};