mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
ask request if method is supported rather than checking ourselves
This commit is contained in:
parent
519c7f9ef0
commit
301b484371
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ export default class VerificationPanel extends React.PureComponent {
|
||||||
|
|
||||||
renderQRPhase(pending) {
|
renderQRPhase(pending) {
|
||||||
const {member, request} = this.props;
|
const {member, request} = this.props;
|
||||||
const showSAS = request.methods.includes(verificationMethods.SAS);
|
const showSAS = request.otherPartySupportsMethod(verificationMethods.SAS);
|
||||||
const showQR = this.props.request.otherPartySupportsMethod(SCAN_QR_CODE_METHOD);
|
const showQR = request.otherPartySupportsMethod(SCAN_QR_CODE_METHOD);
|
||||||
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
||||||
|
|
||||||
const noCommonMethodError = !showSAS && !showQR ?
|
const noCommonMethodError = !showSAS && !showQR ?
|
||||||
|
|
Loading…
Reference in a new issue