From 9f5f15d1d3a597e6cc12f2e0d95b83255dd94c99 Mon Sep 17 00:00:00 2001 From: Zoe Date: Thu, 30 Jan 2020 15:58:23 +0000 Subject: [PATCH] Update copy when the user verifies their own devices --- .../views/dialogs/IncomingSasDialog.js | 40 ++++++++++++++----- src/i18n/strings/en_EN.json | 2 + 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/src/components/views/dialogs/IncomingSasDialog.js b/src/components/views/dialogs/IncomingSasDialog.js index 3bf7b83291..1221e0cb91 100644 --- a/src/components/views/dialogs/IncomingSasDialog.js +++ b/src/components/views/dialogs/IncomingSasDialog.js @@ -121,6 +121,8 @@ export default class IncomingSasDialog extends React.Component { const Spinner = sdk.getComponent("views.elements.Spinner"); const BaseAvatar = sdk.getComponent("avatars.BaseAvatar"); + const isSelf = this.props.verifier.userId == MatrixClientPeg.get().credentials.userId; + let profile; if (this.state.opponentProfile) { profile =
@@ -148,20 +150,36 @@ export default class IncomingSasDialog extends React.Component { profile = ; } + const userDetailText = [ +

{_t( + "Verify this user to mark them as trusted. " + + "Trusting users gives you extra peace of mind when using " + + "end-to-end encrypted messages.", + )}

, +

{_t( + // NB. Below wording adjusted to singular 'session' until we have + // cross-signing + "Verifying this user will mark their session as trusted, and " + + "also mark your session as trusted to them.", + )}

+ ]; + + const selfDetailText = [ +

{_t( + "Verify this device to mark it as trusted. " + + "Trusting this device gives you and other users extra peace of mind when using " + + "end-to-end encrypted messages.", + )}

, +

{_t( + "Verifying this device will mark it as trusted, and users who have verified with " + + "you will trust this device.", + )}

+ ]; + return (
{profile} -

{_t( - "Verify this user to mark them as trusted. " + - "Trusting users gives you extra peace of mind when using " + - "end-to-end encrypted messages.", - )}

-

{_t( - // NB. Below wording adjusted to singular 'session' until we have - // cross-signing - "Verifying this user will mark their session as trusted, and " + - "also mark your session as trusted to them.", - )}

+ {isSelf ? selfDetailText : userDetailText}