fixed error in photo path

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2018-04-05 11:50:13 +03:00
parent 7168896ffe
commit 66f90cfdbc
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 5 deletions

View File

@ -245,7 +245,8 @@
(defn- photo [from photo-path] (defn- photo [from photo-path]
[react/view [react/view
[react/image {:source (if (string/starts-with? photo-path "contacts://") [react/image {:source (if (and (not (string/blank? photo-path))
(string/starts-with? photo-path "contacts://"))
(->> (string/replace photo-path #"contacts://" "") (->> (string/replace photo-path #"contacts://" "")
(keyword) (keyword)
(get resources/contacts)) (get resources/contacts))
@ -285,10 +286,10 @@
content]] content]]
(when last-outgoing? (when last-outgoing?
[react/view style/delivery-status [react/view style/delivery-status
(if (or (= (keyword message-type) :group-user-message) (if (or (= (keyword message-type) :group-user-message)
group-chat) group-chat)
[group-message-delivery-status message] [group-message-delivery-status message]
[message-delivery-status message])])]) [message-delivery-status message])])])
(defn message-container-animation-logic [{:keys [to-value val callback]}] (defn message-container-animation-logic [{:keys [to-value val callback]}]
(fn [_] (fn [_]