From 6b85ca2fb93d46767c6dfaade17f5043ff3e367f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 10 Feb 2020 16:17:49 +0100 Subject: [PATCH] add qr code method to new session dialog --- src/components/views/dialogs/NewSessionReviewDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/NewSessionReviewDialog.js b/src/components/views/dialogs/NewSessionReviewDialog.js index 58cb1d7cec..da12bbed62 100644 --- a/src/components/views/dialogs/NewSessionReviewDialog.js +++ b/src/components/views/dialogs/NewSessionReviewDialog.js @@ -26,6 +26,7 @@ import DialogButtons from '../elements/DialogButtons'; import {verificationMethods} from 'matrix-js-sdk/src/crypto'; import {MatrixClientPeg} from "../../../MatrixClientPeg"; import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases"; +import {SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; @replaceableComponent("views.dialogs.NewSessionReviewDialog") export default class NewSessionReviewDialog extends React.PureComponent { @@ -44,7 +45,7 @@ export default class NewSessionReviewDialog extends React.PureComponent { const cli = MatrixClientPeg.get(); const request = await cli.requestVerification( userId, - [verificationMethods.SAS], + [verificationMethods.SAS, SHOW_QR_CODE_METHOD], [device.deviceId], ); dis.dispatch({