Merge pull request #3312 from matrix-org/t3chguy/cleanup_legacy_verification
Verifying your own device should not ask you to "contact its owner"
This commit is contained in:
commit
4833d4cb23
2 changed files with 14 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
||||||
Copyright 2016 OpenMarket Ltd
|
Copyright 2016 OpenMarket Ltd
|
||||||
Copyright 2017 Vector Creations Ltd
|
Copyright 2017 Vector Creations Ltd
|
||||||
Copyright 2019 New Vector Ltd
|
Copyright 2019 New Vector Ltd
|
||||||
|
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -241,6 +242,16 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||||
const AccessibleButton = sdk.getComponent('views.elements.AccessibleButton');
|
const AccessibleButton = sdk.getComponent('views.elements.AccessibleButton');
|
||||||
|
|
||||||
|
let text;
|
||||||
|
if (MatrixClientPeg.get().getUserId() === this.props.userId) {
|
||||||
|
text = _t("To verify that this device can be trusted, please check that the key you see " +
|
||||||
|
"in User Settings on that device matches the key below:");
|
||||||
|
} else {
|
||||||
|
text = _t("To verify that this device can be trusted, please contact its owner using some other " +
|
||||||
|
"means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings " +
|
||||||
|
"for this device matches the key below:");
|
||||||
|
}
|
||||||
|
|
||||||
const key = FormattingUtils.formatCryptoKey(this.props.device.getFingerprint());
|
const key = FormattingUtils.formatCryptoKey(this.props.device.getFingerprint());
|
||||||
const body = (
|
const body = (
|
||||||
<div>
|
<div>
|
||||||
|
@ -250,10 +261,7 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
{_t("Use two-way text verification")}
|
{_t("Use two-way text verification")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
<p>
|
<p>
|
||||||
{ _t("To verify that this device can be trusted, please contact its " +
|
{ text }
|
||||||
"owner using some other means (e.g. in person or a phone call) " +
|
|
||||||
"and ask them whether the key they see in their User Settings " +
|
|
||||||
"for this device matches the key below:") }
|
|
||||||
</p>
|
</p>
|
||||||
<div className="mx_DeviceVerifyDialog_cryptoSection">
|
<div className="mx_DeviceVerifyDialog_cryptoSection">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -1195,8 +1195,9 @@
|
||||||
"Waiting for partner to accept...": "Waiting for partner to accept...",
|
"Waiting for partner to accept...": "Waiting for partner to accept...",
|
||||||
"Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.": "Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.",
|
"Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.": "Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.",
|
||||||
"Waiting for %(userId)s to confirm...": "Waiting for %(userId)s to confirm...",
|
"Waiting for %(userId)s to confirm...": "Waiting for %(userId)s to confirm...",
|
||||||
"Use two-way text verification": "Use two-way text verification",
|
"To verify that this device can be trusted, please check that the key you see in User Settings on that device matches the key below:": "To verify that this device can be trusted, please check that the key you see in User Settings on that device matches the key below:",
|
||||||
"To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:": "To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:",
|
"To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:": "To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:",
|
||||||
|
"Use two-way text verification": "Use two-way text verification",
|
||||||
"Device name": "Device name",
|
"Device name": "Device name",
|
||||||
"Device key": "Device key",
|
"Device key": "Device key",
|
||||||
"If it matches, press the verify button below. If it doesn't, then someone else is intercepting this device and you probably want to press the blacklist button instead.": "If it matches, press the verify button below. If it doesn't, then someone else is intercepting this device and you probably want to press the blacklist button instead.",
|
"If it matches, press the verify button below. If it doesn't, then someone else is intercepting this device and you probably want to press the blacklist button instead.": "If it matches, press the verify button below. If it doesn't, then someone else is intercepting this device and you probably want to press the blacklist button instead.",
|
||||||
|
|
Loading…
Reference in a new issue