From 048e1e4cd705b5b7dba7e176ab97feac593072ee Mon Sep 17 00:00:00 2001
From: Josh Perez <60019601+josh-signal@users.noreply.github.com>
Date: Wed, 6 Oct 2021 16:27:14 -0400
Subject: [PATCH] Move the safety number viewer into modal
---
_locales/en/messages.json | 6 ++-
background.html | 10 -----
js/views/key_verification_view.js | 37 ---------------
.../components/SafetyNumberViewer.scss | 45 +++++++------------
test/index.html | 11 -----
ts/components/GlobalModalContainer.tsx | 10 +++++
ts/components/SafetyNumberModal.tsx | 31 +++++++++++++
ts/components/SafetyNumberViewer.stories.tsx | 16 -------
ts/components/SafetyNumberViewer.tsx | 32 +++----------
ts/state/ducks/globalModals.ts | 27 ++++++++++-
ts/state/smart/GlobalModalContainer.tsx | 6 +++
ts/state/smart/SafetyNumberModal.tsx | 27 +++++++++++
ts/util/lint/exceptions.json | 34 +-------------
ts/views/conversation_view.ts | 7 ++-
14 files changed, 132 insertions(+), 167 deletions(-)
delete mode 100644 js/views/key_verification_view.js
create mode 100644 ts/components/SafetyNumberModal.tsx
create mode 100644 ts/state/smart/SafetyNumberModal.tsx
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 2002fb526d5..d959ae6a593 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -1123,7 +1123,7 @@
"description": "This is a menu item for viewing all media (images + video) in a conversation, using the imperative case, as in a command."
},
"verifyHelp": {
- "message": "If you wish to verify the security of your end-to-end encryption with $name$, compare the numbers above with the numbers on their device.",
+ "message": "To verify the security of your end-to-end encryption with $name$, compare the numbers above with their device.",
"placeholders": {
"name": {
"content": "$1",
@@ -2148,6 +2148,10 @@
}
}
},
+ "SafetyNumberModal__title": {
+ "message": "Verify Safety Number",
+ "description": "Title for the modal for safety number verification"
+ },
"safetyNumberChanged": {
"message": "Safety Number has changed",
"description": "A notification shown in the conversation when a contact reinstalls"
diff --git a/background.html b/background.html
index a4995ccb352..dec14ed2bdf 100644
--- a/background.html
+++ b/background.html
@@ -106,12 +106,6 @@
-
-
-
-
-
-