You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
show message after clicking "they match"
This commit is contained in:
@@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user