Replace `beginKeyVerification` with `startVerification` (#11167)

pull/28217/head
Richard van der Hoff 2023-06-30 13:09:06 +01:00 committed by GitHub
parent 3fb4dac6fc
commit 2ea8a030ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -399,12 +399,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
private startSAS = async (): Promise<void> => {
this.setState({ emojiButtonClicked: true });
const verifier = this.props.request.beginKeyVerification(verificationMethods.SAS);
try {
await verifier.verify();
} catch (err) {
logger.error(err);
}
await this.props.request.startVerification(verificationMethods.SAS);
};
private onSasMatchesClick = (): void => {