Skip to content

Commit

Permalink
using defn and get instead of defview and letsubs
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Aug 16, 2022
1 parent b1394fe commit 33acefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im/ui/screens/chat/message/message_old.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@

(defview quoted-message
[_ {:keys [from parsed-text image audio sticker id] :as message} outgoing current-public-key public? pinned chat-id]
(letsubs [contact-name [:contacts/contact-name-by-identity from]
replied-message (@(re-frame/subscribe [:chats/chat-messages chat-id]) id)] ;; message replied to
(let [contact-name [:contacts/contact-name-by-identity from]
replied-message (get @(re-frame/subscribe [:chats/chat-messages chat-id]) id)] ;; message replied to
[react/view {:style (style/quoted-message-container (and outgoing (not pinned)))}
[react/view {:style style/quoted-message-author-container}
[chat.utils/format-reply-author
Expand Down

0 comments on commit 33acefe

Please sign in to comment.