From 2b62c6773da4f4386b0872efe92e7186a3d4a84b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 31 Jan 2020 17:10:06 +0000 Subject: [PATCH] Advertise that we can scan QR codes even though we can't This is to fix RiotX not realizing it can scan QR codes. Follow up issue is https://github.com/vector-im/riot-web/issues/12178 --- src/MatrixClientPeg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index 98fcc85d60..448c6d9e9b 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 {SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; +import {SCAN_QR_CODE_METHOD, SHOW_QR_CODE_METHOD} from "matrix-js-sdk/src/crypto/verification/QRCode"; interface MatrixClientCreds { homeserverUrl: string, @@ -221,6 +221,7 @@ 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,