From c55f12ecf8f44d9b3dca4f890e5c17e023a933d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Felipe=20Ceballos=20M?= <30534988+andresceballosm@users.noreply.github.com> Date: Wed, 12 Jul 2023 08:04:29 -0500 Subject: [PATCH] [#15950] Updated build-image-messages (#16518) Author: andresceballosm --- src/status_im/chat/models/input.cljs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/status_im/chat/models/input.cljs b/src/status_im/chat/models/input.cljs index 1995160648..c6c348719a 100644 --- a/src/status_im/chat/models/input.cljs +++ b/src/status_im/chat/models/input.cljs @@ -167,14 +167,16 @@ {:keys [message-id]} (get-in db [:chat/inputs chat-id :metadata :responding-to-message]) album-id (str (random-uuid))] (mapv (fn [[_ {:keys [resized-uri width height]}]] - {:chat-id chat-id - :album-id album-id - :content-type constants/content-type-image - :image-path (utils.string/safe-replace resized-uri #"file://" "") - :image-width width - :image-height height - :text input-text - :response-to message-id}) + {:chat-id chat-id + :album-id album-id + :content-type constants/content-type-image + :image-path (utils.string/safe-replace resized-uri #"file://" "") + :image-width width + :image-height height + :text input-text + :link-previews (map #(select-keys % [:url :title :description :thumbnail]) + (get-in db [:chat/link-previews :unfurled])) + :response-to message-id}) images))) (rf/defn clean-input