diff --git a/src/status_im/chat/models/images.cljs b/src/status_im/chat/models/images.cljs index c74b84c0c9..d831369556 100644 --- a/src/status_im/chat/models/images.cljs +++ b/src/status_im/chat/models/images.cljs @@ -141,12 +141,11 @@ (let [current-chat-id (:current-chat-id db) images (get-in db [:chats current-chat-id :metadata :sending-image])] (if (get-in db [:chats current-chat-id :timeline?]) - {:db (update-in db [:chats current-chat-id :metadata :sending-image] {uri {:uri uri}}) + {:db (assoc-in db [:chats current-chat-id :metadata :sending-image] {}) ::image-selected uri} (when (and (< (count images) config/max-images-batch) (not (get images uri))) - {:db (update-in db [:chats current-chat-id :metadata :sending-image] assoc uri {:uri uri}) - ::image-selected uri})))) + {::image-selected uri})))) (fx/defn save-image-to-gallery {:events [:chat.ui/save-image-to-gallery]}