From fb28bbbaa68a5cf19a6f1f1e565018f1290925c5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 20 Feb 2020 12:06:34 +0100 Subject: [PATCH] dont say we can scan when we dont --- src/MatrixClientPeg.js | 3 +-- src/components/views/dialogs/DeviceVerifyDialog.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index 448c6d9e9b..98fcc85d60 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -32,7 +32,7 @@ import MatrixClientBackedSettingsHandler from "./settings/handlers/MatrixClientB import * as StorageManager from './utils/StorageManager'; import IdentityAuthClient from './IdentityAuthClient'; import { crossSigningCallbacks } from './CrossSigningManager'; -import {SCAN_QR_CODE_METHOD, SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; +import {SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; interface MatrixClientCreds { homeserverUrl: string, @@ -221,7 +221,6 @@ class _MatrixClientPeg { verificationMethods: [ verificationMethods.SAS, SHOW_QR_CODE_METHOD, - SCAN_QR_CODE_METHOD, // XXX: We don't actually support scanning yet! verificationMethods.RECIPROCATE_QR_CODE, ], unstableClientRelationAggregation: true, diff --git a/src/components/views/dialogs/DeviceVerifyDialog.js b/src/components/views/dialogs/DeviceVerifyDialog.js index 835b7daf02..f7826b9c27 100644 --- a/src/components/views/dialogs/DeviceVerifyDialog.js +++ b/src/components/views/dialogs/DeviceVerifyDialog.js @@ -27,7 +27,7 @@ import {verificationMethods} from 'matrix-js-sdk/src/crypto'; import {ensureDMExists} from "../../../createRoom"; import dis from "../../../dispatcher"; import SettingsStore from '../../../settings/SettingsStore'; -import {SCAN_QR_CODE_METHOD, SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; +import {SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; import VerificationQREmojiOptions from "../verification/VerificationQREmojiOptions"; const MODE_LEGACY = 'legacy'; @@ -135,7 +135,6 @@ export default class DeviceVerifyDialog extends React.Component { this._request = await client.requestVerification(this.props.userId, [ verificationMethods.SAS, SHOW_QR_CODE_METHOD, - SCAN_QR_CODE_METHOD, verificationMethods.RECIPROCATE_QR_CODE, ]);