Show number of unread messages (#15987)
This commit is contained in:
parent
a3ce2aa578
commit
56d0913d4b
|
@ -206,7 +206,7 @@
|
||||||
:size :medium}]))
|
:size :medium}]))
|
||||||
|
|
||||||
(defn chat-list-item
|
(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]
|
timestamp last-message muted]
|
||||||
:as item}]
|
:as item}]
|
||||||
(let [display-name (if group-chat
|
(let [display-name (if group-chat
|
||||||
|
@ -228,8 +228,6 @@
|
||||||
[name-view display-name contact timestamp]
|
[name-view display-name contact timestamp]
|
||||||
[last-message-preview group-chat last-message]]
|
[last-message-preview group-chat last-message]]
|
||||||
(when-not muted
|
(when-not muted
|
||||||
(if (> unviewed-mentions-count 0)
|
(when (> unviewed-messages-count 0)
|
||||||
[quo/info-count {:style {:top 16}}
|
[quo/info-count {:style {:top 16}}
|
||||||
unviewed-mentions-count]
|
unviewed-messages-count]))]))
|
||||||
(when (> unviewed-messages-count 0)
|
|
||||||
[rn/view {:style (style/count-container)}])))]))
|
|
||||||
|
|
Loading…
Reference in New Issue