From 301b484371aca5204f94fdf34a48f79869b83e39 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 20 Mar 2020 13:37:00 +0100 Subject: [PATCH] ask request if method is supported rather than checking ourselves --- src/components/views/right_panel/VerificationPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/right_panel/VerificationPanel.js b/src/components/views/right_panel/VerificationPanel.js index 5dd01c9f79..38ee31c8b7 100644 --- a/src/components/views/right_panel/VerificationPanel.js +++ b/src/components/views/right_panel/VerificationPanel.js @@ -72,8 +72,8 @@ export default class VerificationPanel extends React.PureComponent { renderQRPhase(pending) { const {member, request} = this.props; - const showSAS = request.methods.includes(verificationMethods.SAS); - const showQR = this.props.request.otherPartySupportsMethod(SCAN_QR_CODE_METHOD); + const showSAS = request.otherPartySupportsMethod(verificationMethods.SAS); + const showQR = request.otherPartySupportsMethod(SCAN_QR_CODE_METHOD); const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); const noCommonMethodError = !showSAS && !showQR ?