mirror of
https://github.com/status-im/status-react.git
synced 2025-02-04 23:26:11 +00:00
parent
a1babada69
commit
741e40094b
@ -187,9 +187,12 @@
|
|||||||
(let [{:keys [chat-id chat-name emoji chat-type
|
(let [{:keys [chat-id chat-name emoji chat-type
|
||||||
group-chat]} chat
|
group-chat]} chat
|
||||||
all-loaded? (rf/sub [:chats/all-loaded? chat-id])
|
all-loaded? (rf/sub [:chats/all-loaded? chat-id])
|
||||||
display-name (if (= chat-type constants/one-to-one-chat-type)
|
display-name (cond
|
||||||
|
(= chat-type constants/one-to-one-chat-type)
|
||||||
(first (rf/sub [:contacts/contact-two-names-by-identity chat-id]))
|
(first (rf/sub [:contacts/contact-two-names-by-identity chat-id]))
|
||||||
(str emoji " " chat-name))
|
(= chat-type constants/community-chat-type)
|
||||||
|
(str (when emoji (str emoji " ")) "# " chat-name)
|
||||||
|
:else (str emoji chat-name))
|
||||||
{:keys [bio]} (rf/sub [:contacts/contact-by-identity chat-id])
|
{:keys [bio]} (rf/sub [:contacts/contact-by-identity chat-id])
|
||||||
online? (rf/sub [:visibility-status-updates/online? chat-id])
|
online? (rf/sub [:visibility-status-updates/online? chat-id])
|
||||||
contact (when-not group-chat
|
contact (when-not group-chat
|
||||||
|
@ -23,9 +23,12 @@
|
|||||||
chat-screen-loaded? (rf/sub [:shell/chat-screen-loaded?])
|
chat-screen-loaded? (rf/sub [:shell/chat-screen-loaded?])
|
||||||
all-loaded? (when chat-screen-loaded?
|
all-loaded? (when chat-screen-loaded?
|
||||||
(rf/sub [:chats/all-loaded? (:chat-id chat)]))
|
(rf/sub [:chats/all-loaded? (:chat-id chat)]))
|
||||||
display-name (if (= chat-type constants/one-to-one-chat-type)
|
display-name (cond
|
||||||
|
(= chat-type constants/one-to-one-chat-type)
|
||||||
(first (rf/sub [:contacts/contact-two-names-by-identity chat-id]))
|
(first (rf/sub [:contacts/contact-two-names-by-identity chat-id]))
|
||||||
(str emoji " " chat-name))
|
(= chat-type constants/community-chat-type)
|
||||||
|
(str (when emoji (str emoji " ")) "# " chat-name)
|
||||||
|
:else (str emoji chat-name))
|
||||||
online? (rf/sub [:visibility-status-updates/online? chat-id])
|
online? (rf/sub [:visibility-status-updates/online? chat-id])
|
||||||
photo-path (rf/sub [:chats/photo-path chat-id])
|
photo-path (rf/sub [:chats/photo-path chat-id])
|
||||||
opacity-animation (reanimated/interpolate scroll-y
|
opacity-animation (reanimated/interpolate scroll-y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user