Use only counter (no unread indicator) for chats bottom bar tab (#16417)
This commit is contained in:
parent
5f441dfa93
commit
bca7ab7925
|
@ -215,8 +215,8 @@
|
||||||
:counter-label (:unviewed-mentions-count community-stack)}
|
:counter-label (:unviewed-mentions-count community-stack)}
|
||||||
:chats-stack
|
:chats-stack
|
||||||
{:new-notifications? (pos? (:unviewed-messages-count chats-stack))
|
{:new-notifications? (pos? (:unviewed-messages-count chats-stack))
|
||||||
:notification-indicator (if (pos? (:unviewed-mentions-count chats-stack)) :counter :unread-dot)
|
:notification-indicator :counter
|
||||||
:counter-label (:unviewed-mentions-count chats-stack)}})))
|
:counter-label (:unviewed-messages-count chats-stack)}})))
|
||||||
|
|
||||||
;; Floating screens
|
;; Floating screens
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
:notification-indicator :unread-dot
|
:notification-indicator :unread-dot
|
||||||
:counter-label 0}
|
:counter-label 0}
|
||||||
:chats-stack {:new-notifications? true
|
:chats-stack {:new-notifications? true
|
||||||
:notification-indicator :unread-dot
|
:notification-indicator :counter
|
||||||
:counter-label 0}})
|
:counter-label 7}})
|
||||||
|
|
||||||
(def one-to-one-group-community-chats2
|
(def one-to-one-group-community-chats2
|
||||||
(merge
|
(merge
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
:counter-label 7}
|
:counter-label 7}
|
||||||
:chats-stack {:new-notifications? true
|
:chats-stack {:new-notifications? true
|
||||||
:notification-indicator :counter
|
:notification-indicator :counter
|
||||||
:counter-label 9}})
|
:counter-label 19}})
|
||||||
|
|
||||||
(h/deftest-sub :shell/bottom-tabs-notifications-data
|
(h/deftest-sub :shell/bottom-tabs-notifications-data
|
||||||
[sub-name]
|
[sub-name]
|
||||||
|
|
Loading…
Reference in New Issue