show message after clicking "they match"
This commit is contained in:
parent
dd633bd8fe
commit
2dd1e93d84
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,9 @@ export default class VerificationPanel extends React.PureComponent {
|
||||||
} else if (request.ready) {
|
} else if (request.ready) {
|
||||||
return (<p>{request.otherUserId} is ready, start <AccessibleButton kind="primary" onClick={this._startSAS}>Verify by emoji</AccessibleButton></p>);
|
return (<p>{request.otherUserId} is ready, start <AccessibleButton kind="primary" onClick={this._startSAS}>Verify by emoji</AccessibleButton></p>);
|
||||||
} else if (request.started) {
|
} 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');
|
const VerificationShowSas = sdk.getComponent('views.verification.VerificationShowSas');
|
||||||
return (<div>
|
return (<div>
|
||||||
<VerificationShowSas
|
<VerificationShowSas
|
||||||
|
@ -66,6 +68,7 @@ export default class VerificationPanel extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
_onSasMatchesClick = () => {
|
_onSasMatchesClick = () => {
|
||||||
|
this.setState({sasWaitingForOtherParty: true});
|
||||||
this.state.sasEvent.confirm();
|
this.state.sasEvent.confirm();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue