From df2dd56cfbd3851e88415589d52e4b33866968a5 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 23 Jan 2023 14:01:49 +0100 Subject: [PATCH] [#14728] Fix sender avatar in reply --- src/status_im2/contexts/chat/messages/content/view.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/status_im2/contexts/chat/messages/content/view.cljs b/src/status_im2/contexts/chat/messages/content/view.cljs index cfccd555da..db81ed1d85 100644 --- a/src/status_im2/contexts/chat/messages/content/view.cljs +++ b/src/status_im2/contexts/chat/messages/content/view.cljs @@ -20,10 +20,13 @@ [status-im.utils.utils :as utils])) (defn avatar - [{:keys [response-to last-in-group? pinned quoted-message from]}] + [{:keys [content last-in-group? pinned quoted-message from]}] [rn/touchable-without-feedback {:on-press #(rf/dispatch [:chat.ui/show-profile from])} [rn/view {:padding-top 2 :width 32} - (when (or (and (seq response-to) quoted-message) last-in-group? pinned) + (when (or (and (seq (:response-to content)) + quoted-message) + last-in-group? + pinned) (let [display-name (first (rf/sub [:contacts/contact-two-names-by-identity from])) contact (rf/sub [:contacts/contact-by-address from]) photo-path (when-not (empty? (:images contact)) (rf/sub [:chats/photo-path from]))