mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
Fix group members count
Former-commit-id: df2d2b02caeeda4c15988abd1b094d94f8f468b0
This commit is contained in:
parent
844ff739af
commit
19c11ec370
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
(defn typing-all []
|
(defn typing-all []
|
||||||
[view st/typing-all
|
[view st/typing-all
|
||||||
|
;; TODO stub data
|
||||||
(for [member ["Geoff" "Justas"]]
|
(for [member ["Geoff" "Justas"]]
|
||||||
^{:key member} [typing member])])
|
^{:key member} [typing member])])
|
||||||
|
|
||||||
@ -167,7 +168,7 @@
|
|||||||
[view {:flexDirection :row}
|
[view {:flexDirection :row}
|
||||||
[icon :group st/group-icon]
|
[icon :group st/group-icon]
|
||||||
[text {:style st/members}
|
[text {:style st/members}
|
||||||
(let [cnt (count @contacts)]
|
(let [cnt (inc (count @contacts))]
|
||||||
(str cnt
|
(str cnt
|
||||||
(if (< 1 cnt)
|
(if (< 1 cnt)
|
||||||
" members"
|
" members"
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
[icon :group st/group-icon])
|
[icon :group st/group-icon])
|
||||||
(when group-chat
|
(when group-chat
|
||||||
[text {:style st/memebers-text}
|
[text {:style st/memebers-text}
|
||||||
(if (< 1 (count contacts))
|
(if (< 0 (count contacts))
|
||||||
(str (count contacts) " members")
|
(str (inc (count contacts)) " members")
|
||||||
"1 member")])]
|
"1 member")])]
|
||||||
[text {:style st/last-message-text
|
[text {:style st/last-message-text
|
||||||
:numberOfLines 2}
|
:numberOfLines 2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user