From 56d0913d4b9f543ffc6f8a3dc8366418bbedd835 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Tue, 23 May 2023 17:00:20 +0100 Subject: [PATCH] Show number of unread messages (#15987) --- .../contexts/chat/home/chat_list_item/view.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/status_im2/contexts/chat/home/chat_list_item/view.cljs b/src/status_im2/contexts/chat/home/chat_list_item/view.cljs index 7d6cb6fd60..7c86e21f9d 100644 --- a/src/status_im2/contexts/chat/home/chat_list_item/view.cljs +++ b/src/status_im2/contexts/chat/home/chat_list_item/view.cljs @@ -206,7 +206,7 @@ :size :medium}])) (defn chat-list-item - [{:keys [chat-id group-chat color name unviewed-messages-count unviewed-mentions-count + [{:keys [chat-id group-chat color name unviewed-messages-count timestamp last-message muted] :as item}] (let [display-name (if group-chat @@ -228,8 +228,6 @@ [name-view display-name contact timestamp] [last-message-preview group-chat last-message]] (when-not muted - (if (> unviewed-mentions-count 0) + (when (> unviewed-messages-count 0) [quo/info-count {:style {:top 16}} - unviewed-mentions-count] - (when (> unviewed-messages-count 0) - [rn/view {:style (style/count-container)}])))])) + unviewed-messages-count]))]))