From 39fab02fcc64b285092f2fcae73957d120523131 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 31 Jan 2020 17:15:52 +0100 Subject: [PATCH] rename DeviceVerifyOwnDialog to VerificationRequestDialog as it works (and we want to use it) for any verification request, not just between two devices of the same user --- src/components/views/dialogs/NewSessionReviewDialog.js | 4 ++-- ...{DeviceVerifyOwnDialog.js => VerificationRequestDialog.js} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/components/views/dialogs/{DeviceVerifyOwnDialog.js => VerificationRequestDialog.js} (94%) diff --git a/src/components/views/dialogs/NewSessionReviewDialog.js b/src/components/views/dialogs/NewSessionReviewDialog.js index cab30c4d14..48c15ab06a 100644 --- a/src/components/views/dialogs/NewSessionReviewDialog.js +++ b/src/components/views/dialogs/NewSessionReviewDialog.js @@ -19,7 +19,7 @@ import PropTypes from 'prop-types'; import { _t } from '../../../languageHandler'; import Modal from '../../../Modal'; import { replaceableComponent } from '../../../utils/replaceableComponent'; -import DeviceVerifyOwnDialog from './DeviceVerifyOwnDialog'; +import VerificationRequestDialog from './VerificationRequestDialog'; import BaseDialog from './BaseDialog'; import DialogButtons from '../elements/DialogButtons'; import {verificationMethods} from 'matrix-js-sdk/src/crypto'; @@ -50,7 +50,7 @@ export default class NewSessionReviewDialog extends React.PureComponent { this.props.onFinished(true); - Modal.createTrackedDialog('New Session Verification', 'Starting dialog', DeviceVerifyOwnDialog, { + Modal.createTrackedDialog('New Session Verification', 'Starting dialog', VerificationRequestDialog, { verificationRequest: request, }); diff --git a/src/components/views/dialogs/DeviceVerifyOwnDialog.js b/src/components/views/dialogs/VerificationRequestDialog.js similarity index 94% rename from src/components/views/dialogs/DeviceVerifyOwnDialog.js rename to src/components/views/dialogs/VerificationRequestDialog.js index 4a75cc16ec..f47d76ab94 100644 --- a/src/components/views/dialogs/DeviceVerifyOwnDialog.js +++ b/src/components/views/dialogs/VerificationRequestDialog.js @@ -19,7 +19,7 @@ import PropTypes from 'prop-types'; import {MatrixClientPeg} from '../../../MatrixClientPeg'; import * as sdk from '../../../index'; -export default class DeviceVerifyOwnDialog extends React.Component { +export default class VerificationRequestDialog extends React.Component { static propTypes = { verificationRequest: PropTypes.object.isRequired, onFinished: PropTypes.func.isRequired,