Dapp icon on non-dapp contact icon (#362)

Former-commit-id: 4b348a7631
This commit is contained in:
Alexander Pantyuhov 2016-10-18 17:27:01 +03:00
parent 3b80659985
commit 9e77635c32
1 changed files with 1 additions and 10 deletions

View File

@ -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}