From 8112cd220a3c7c876f1e734293265c8a2068b274 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 11 Jul 2017 15:54:46 -0700 Subject: [PATCH] Show warning when we discover key change on verify FREEBIE --- _locales/en/messages.json | 10 ++++ background.html | 14 ++--- js/views/confirmation_dialog_view.js | 1 + js/views/key_verification_view.js | 79 ++++++++++++++++++---------- test/index.html | 17 +++--- 5 files changed, 79 insertions(+), 42 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 9d9b493004..0382d3bd48 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -95,6 +95,16 @@ } } }, + "changedRightAfterVerify": { + "message": "Your verification has been cancelled; please review your new safety number with $name$. Remember, this change could mean that someone is trying to intercept your communication or that $name$ has simply reinstalled Signal.", + "description": "Shown on the safety number screen when the user has selected to verify/unverify a contact's safety number, and we immediately discover a safety number change", + "placeholders": { + "name": { + "content": "$1", + "example": "Bob" + } + } + }, "changedRecentlyMultiple": { "message": "Your safety numbers with multiple group members have changed recently. This could mean that someone is trying to intercept your communication or that they have simply reinstalled Signal.", "description": "Shown on confirmation dialog when user attempts to send a message" diff --git a/background.html b/background.html index a1129bb755..8f5c07c0c3 100644 --- a/background.html +++ b/background.html @@ -169,7 +169,9 @@
{{ message }}
- + {{ #showCancel }} + + {{ /showCancel }}
@@ -346,16 +348,16 @@ @@ -337,16 +339,17 @@