From 894be3e4e2da042302efd6ce229ee3422dd696d2 Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Mon, 2 Jan 2023 22:08:40 +0200 Subject: [PATCH] Reply showing unknown (#14682) --- src/status_im/ui2/screens/chat/components/reply.cljs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/status_im/ui2/screens/chat/components/reply.cljs b/src/status_im/ui2/screens/chat/components/reply.cljs index 89417b9545..335f67f3ad 100644 --- a/src/status_im/ui2/screens/chat/components/reply.cljs +++ b/src/status_im/ui2/screens/chat/components/reply.cljs @@ -64,14 +64,9 @@ (i18n/label :t/message-deleted)]]) (defn reply-message - [{:keys [chat-id id]} + [{:keys [from identicon content-type contentType parsed-text content deleted? deleted-for-me?]} in-chat-input? pin?] - (let [reply-content-sub (-> [:chats/chat-messages chat-id] - rf/sub - (get id)) - {:keys [from identicon content-type contentType parsed-text content deleted? deleted-for-me?]} - reply-content-sub - contact-name (rf/sub [:contacts/contact-name-by-identity from]) + (let [contact-name (rf/sub [:contacts/contact-name-by-identity from]) current-public-key (rf/sub [:multiaccount/public-key]) content-type (or content-type contentType)] [rn/view