[fix] last message preview

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-06-04 17:14:28 +02:00
parent bd6583cb76
commit c2b5523322
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 1 additions and 4 deletions

View File

@ -46,8 +46,6 @@
[react/text {:style styles/last-message-text [react/text {:style styles/last-message-text
:number-of-lines 1 :number-of-lines 1
:accessibility-label :chat-message-text} :accessibility-label :chat-message-text}
#_(if-let [render-recipe (:render-recipe content)]
(chat.utils/render-chunks render-recipe message))
(:text content)] (:text content)]
:else :else
@ -112,8 +110,7 @@
[message-timestamp timestamp]]] [message-timestamp timestamp]]]
[react/view styles/item-lower-container [react/view styles/item-lower-container
(let [{:keys [tribute-status tribute-label]} (:tribute-to-talk contact)] (let [{:keys [tribute-status tribute-label]} (:tribute-to-talk contact)]
(if (or group-chat (if (not (#{:require :pending} tribute-status))
(#{:none :paid} tribute-status))
[message-content-text {:content last-message-content [message-content-text {:content last-message-content
:content-type last-message-content-type}] :content-type last-message-content-type}]
[react/text {:style styles/last-message-text} tribute-label])) [react/text {:style styles/last-message-text} tribute-label]))