mirror of https://github.com/vector-im/riot-web
Merge pull request #4094 from matrix-org/bwindels/dontsaywecanscan
Fix: don't advertise ability to scan a QR code for verificationpull/21833/head
commit
d324dfaceb
|
@ -32,7 +32,7 @@ import MatrixClientBackedSettingsHandler from "./settings/handlers/MatrixClientB
|
||||||
import * as StorageManager from './utils/StorageManager';
|
import * as StorageManager from './utils/StorageManager';
|
||||||
import IdentityAuthClient from './IdentityAuthClient';
|
import IdentityAuthClient from './IdentityAuthClient';
|
||||||
import { crossSigningCallbacks } from './CrossSigningManager';
|
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 {
|
interface MatrixClientCreds {
|
||||||
homeserverUrl: string,
|
homeserverUrl: string,
|
||||||
|
@ -221,7 +221,6 @@ class _MatrixClientPeg {
|
||||||
verificationMethods: [
|
verificationMethods: [
|
||||||
verificationMethods.SAS,
|
verificationMethods.SAS,
|
||||||
SHOW_QR_CODE_METHOD,
|
SHOW_QR_CODE_METHOD,
|
||||||
SCAN_QR_CODE_METHOD, // XXX: We don't actually support scanning yet!
|
|
||||||
verificationMethods.RECIPROCATE_QR_CODE,
|
verificationMethods.RECIPROCATE_QR_CODE,
|
||||||
],
|
],
|
||||||
unstableClientRelationAggregation: true,
|
unstableClientRelationAggregation: true,
|
||||||
|
|
|
@ -27,7 +27,7 @@ import {verificationMethods} from 'matrix-js-sdk/src/crypto';
|
||||||
import {ensureDMExists} from "../../../createRoom";
|
import {ensureDMExists} from "../../../createRoom";
|
||||||
import dis from "../../../dispatcher";
|
import dis from "../../../dispatcher";
|
||||||
import SettingsStore from '../../../settings/SettingsStore';
|
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";
|
import VerificationQREmojiOptions from "../verification/VerificationQREmojiOptions";
|
||||||
|
|
||||||
const MODE_LEGACY = 'legacy';
|
const MODE_LEGACY = 'legacy';
|
||||||
|
@ -135,7 +135,6 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
this._request = await client.requestVerification(this.props.userId, [
|
this._request = await client.requestVerification(this.props.userId, [
|
||||||
verificationMethods.SAS,
|
verificationMethods.SAS,
|
||||||
SHOW_QR_CODE_METHOD,
|
SHOW_QR_CODE_METHOD,
|
||||||
SCAN_QR_CODE_METHOD,
|
|
||||||
verificationMethods.RECIPROCATE_QR_CODE,
|
verificationMethods.RECIPROCATE_QR_CODE,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue