From bca7ab7925269545aa1e9a141fb809dd218877d6 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Thu, 29 Jun 2023 16:42:08 +0100 Subject: [PATCH] Use only counter (no unread indicator) for chats bottom bar tab (#16417) --- src/status_im2/subs/shell.cljs | 4 ++-- src/status_im2/subs/shell_test.cljs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/status_im2/subs/shell.cljs b/src/status_im2/subs/shell.cljs index eba9fe46ba..2bd4abb302 100644 --- a/src/status_im2/subs/shell.cljs +++ b/src/status_im2/subs/shell.cljs @@ -215,8 +215,8 @@ :counter-label (:unviewed-mentions-count community-stack)} :chats-stack {:new-notifications? (pos? (:unviewed-messages-count chats-stack)) - :notification-indicator (if (pos? (:unviewed-mentions-count chats-stack)) :counter :unread-dot) - :counter-label (:unviewed-mentions-count chats-stack)}}))) + :notification-indicator :counter + :counter-label (:unviewed-messages-count chats-stack)}}))) ;; Floating screens (re-frame/reg-sub diff --git a/src/status_im2/subs/shell_test.cljs b/src/status_im2/subs/shell_test.cljs index 0f181149b4..c1394cdf03 100644 --- a/src/status_im2/subs/shell_test.cljs +++ b/src/status_im2/subs/shell_test.cljs @@ -29,8 +29,8 @@ :notification-indicator :unread-dot :counter-label 0} :chats-stack {:new-notifications? true - :notification-indicator :unread-dot - :counter-label 0}}) + :notification-indicator :counter + :counter-label 7}}) (def one-to-one-group-community-chats2 (merge @@ -51,7 +51,7 @@ :counter-label 7} :chats-stack {:new-notifications? true :notification-indicator :counter - :counter-label 9}}) + :counter-label 19}}) (h/deftest-sub :shell/bottom-tabs-notifications-data [sub-name]