From 548c8e69cfe531a90316d8e422693b0255f8af19 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 18 May 2018 16:57:26 -0700 Subject: [PATCH] Emojification now all done with react via a few new components Three locations were changed: 1. a group update, which lists a set of contacts 2. the contact name in the left pane 3. the conversation title Three new components were added to window.Signal.Components to support these scenarios, respectively: 1. Emojify 2. ContactName 3. ConversationTitle Note that there are a number of other places in the app that should be emojified, but never have been before. Essentially any place that a contact name might be shown. A non-exhaustive list: - Show group members - Show safety number - Verified change notification - Disappearing timer change notification - Contact verification notification - Quote contact name --- background.html | 16 +----- js/signal.js | 8 +++ js/views/conversation_list_item_view.js | 28 ++++++++++- js/views/conversation_view.js | 49 ++++++------------- js/views/message_view.js | 35 +++++++++---- stylesheets/_global.scss | 5 ++ test/index.html | 11 ----- ts/components/conversation/ContactName.tsx | 29 +++++++++++ .../conversation/ConversationTitle.tsx | 42 ++++++++++++++++ ts/styleguide/StyleGuideUtil.ts | 2 +- 10 files changed, 152 insertions(+), 73 deletions(-) create mode 100644 ts/components/conversation/ContactName.tsx create mode 100644 ts/components/conversation/ConversationTitle.tsx diff --git a/background.html b/background.html index 38c64382d6d..d3e83075a32 100644 --- a/background.html +++ b/background.html @@ -135,20 +135,6 @@ - -