From 6ed7e7a930add7532406eff735fbc0a4ab60cd1f Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Fri, 16 Aug 2024 14:07:45 +0530 Subject: [PATCH] Logs for failed stickers --- .../messenger/messages/content/sticker_message/view.cljs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/messages/content/sticker_message/view.cljs b/src/status_im/contexts/chat/messenger/messages/content/sticker_message/view.cljs index 4fddbdedae..4998375848 100644 --- a/src/status_im/contexts/chat/messenger/messages/content/sticker_message/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/content/sticker_message/view.cljs @@ -1,10 +1,15 @@ (ns status-im.contexts.chat.messenger.messages.content.sticker-message.view (:require [react-native.core :as rn] - [react-native.fast-image :as fast-image])) + [react-native.fast-image :as fast-image] + [oops.core :as oops])) (defn view [{:keys [url]}] [rn/view {:style {:margin-top 6 :margin-bottom 4}} - [fast-image/fast-image + (print "------------ parvesh" url) + [rn/image {:style {:width 120 :height 120} + :on-error (fn [e] + (print "------ parvesh error" + (oops/oget e "nativeEvent.error"))) :source {:uri (str url "&download=true")}}]])