This commit is contained in:
Bruno Windels 2020-02-10 14:48:10 +01:00
parent 2a8453b939
commit a693af0c6b
4 changed files with 2 additions and 6 deletions

View file

@ -132,7 +132,7 @@ export default class DeviceVerifyDialog extends React.Component {
this._verifier = request.verifier;
}
} else if (verifyingOwnDevice && SettingsStore.isFeatureEnabled("feature_cross_signing")) {
this._request = await client.requestVerification(this.props.userId,[
this._request = await client.requestVerification(this.props.userId, [
verificationMethods.SAS,
SHOW_QR_CODE_METHOD,
]);

View file

@ -24,7 +24,6 @@ import BaseDialog from './BaseDialog';
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")

View file

@ -31,7 +31,6 @@ import {
PHASE_CANCELLED, VerificationRequest,
} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
import Spinner from "../elements/Spinner";
import AccessibleButton from "../elements/AccessibleButton";
export default class VerificationPanel extends React.PureComponent {
static propTypes = {

View file

@ -16,10 +16,8 @@ limitations under the License.
import React from 'react';
import PropTypes from 'prop-types';
import { _t, _td } from '../../../languageHandler';
import {PendingActionSpinner} from "../right_panel/EncryptionInfo";
import { _t } from '../../../languageHandler';
import AccessibleButton from "../elements/AccessibleButton";
import DialogButtons from "../elements/DialogButtons";
import {replaceableComponent} from "../../../utils/replaceableComponent";
import VerificationQRCode from "../elements/crypto/VerificationQRCode";
import {VerificationRequest} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";