diff --git a/src/crypto/index.js b/src/crypto/index.js index 8a997238c..a76c158d9 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -41,7 +41,11 @@ import { import {SECRET_STORAGE_ALGORITHM_V1, SecretStorage} from './SecretStorage'; import {OutgoingRoomKeyRequestManager} from './OutgoingRoomKeyRequestManager'; import {IndexedDBCryptoStore} from './store/indexeddb-crypto-store'; -import {ReciprocateQRCode, SCAN_QR_CODE_METHOD, SHOW_QR_CODE_METHOD} from './verification/QRCode'; +import { + ReciprocateQRCode, + SCAN_QR_CODE_METHOD, + SHOW_QR_CODE_METHOD, +} from './verification/QRCode'; import {SAS} from './verification/SAS'; import {keyFromPassphrase} from './key_passphrase'; import {encodeRecoveryKey} from './recoverykey'; diff --git a/src/crypto/verification/QRCode.js b/src/crypto/verification/QRCode.js index f74ccc9cf..a4a37e0f0 100644 --- a/src/crypto/verification/QRCode.js +++ b/src/crypto/verification/QRCode.js @@ -22,16 +22,9 @@ limitations under the License. import {VerificationBase as Base} from "./Base"; import { - errorFactory, - newKeyMismatchError, newUnknownTransactionError, - newUserCancelledError, + newKeyMismatchError, newUserMismatchError, } from './Error'; -import * as qs from "qs"; - -const MATRIXTO_REGEXP = /^(?:https?:\/\/)?(?:www\.)?matrix\.to\/#\/([#@!+][^?]+)\?(.+)$/; - -const newQRCodeError = errorFactory("m.qr_code.invalid", "Invalid QR code"); export const SHOW_QR_CODE_METHOD = "m.qr_code.show.v1"; export const SCAN_QR_CODE_METHOD = "m.qr_code.scan.v1";