mirror of
https://github.com/status-im/status-react.git
synced 2025-02-17 13:28:04 +00:00
Dapp icon on non-dapp contact icon (#362)
Former-commit-id: 4b348a7631a0fea6ccb0750e32d57124b8fc2c73
This commit is contained in:
parent
3b80659985
commit
9e77635c32
@ -37,14 +37,6 @@
|
|||||||
{:uri photo-path})
|
{:uri photo-path})
|
||||||
:style st/contact-photo}]])
|
:style st/contact-photo}]])
|
||||||
|
|
||||||
(defn contact-online [online?]
|
|
||||||
(when online?
|
|
||||||
[view st/online-container
|
|
||||||
[view st/online-dot-left]
|
|
||||||
[view st/online-dot-right]]))
|
|
||||||
|
|
||||||
;;[photo-path (subscribe [:chat-photo from])
|
|
||||||
|
|
||||||
(defn message-content-status [{:keys [from]}]
|
(defn message-content-status [{:keys [from]}]
|
||||||
(let [chat-photo-path (subscribe [:chat-photo from])
|
(let [chat-photo-path (subscribe [:chat-photo from])
|
||||||
{:keys [group-chat name]} (subscribe [:chat-properties [:group-chat :name]])
|
{:keys [group-chat name]} (subscribe [:chat-properties [:group-chat :name]])
|
||||||
@ -61,8 +53,7 @@
|
|||||||
(< (* 60 1000)))]
|
(< (* 60 1000)))]
|
||||||
[view st/status-container
|
[view st/status-container
|
||||||
[view st/status-image-view
|
[view st/status-image-view
|
||||||
[contact-photo (or photo-path @chat-photo-path)]
|
[contact-photo (or photo-path @chat-photo-path)]]
|
||||||
[contact-online online?]]
|
|
||||||
[text {:style st/status-from
|
[text {:style st/status-from
|
||||||
:font :default
|
:font :default
|
||||||
:number-of-lines 1}
|
:number-of-lines 1}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user