From 0451e9e60ddcb91a68b09e96ecf8a5f04e5d4440 Mon Sep 17 00:00:00 2001 From: balzack Date: Thu, 20 Oct 2022 10:15:38 -0700 Subject: [PATCH] fixing imageAsset render --- .../conversation/topicItem/imageAsset/useImageAsset.hook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mobile/src/session/conversation/topicItem/imageAsset/useImageAsset.hook.js b/app/mobile/src/session/conversation/topicItem/imageAsset/useImageAsset.hook.js index ddf9cfe4..566eb2f1 100644 --- a/app/mobile/src/session/conversation/topicItem/imageAsset/useImageAsset.hook.js +++ b/app/mobile/src/session/conversation/topicItem/imageAsset/useImageAsset.hook.js @@ -9,8 +9,8 @@ export function useImageAsset(topicId, asset) { frameWidth: 1, frameHeight: 1, imageRatio: 1, - imageWidth: 128, - imageHeight: 128, + imageWidth: 1, + imageHeight: 1, url: null, loaded: false, failed: false, @@ -39,7 +39,7 @@ export function useImageAsset(topicId, asset) { updateState({ imageWidth: width, imageHeight: height }); } } - }, [state.frameWidth, state.frameHeight, state.imageRatio]); + }, [state.frameWidth, state.frameHeight, state.imageRatio, state.loaded]); useEffect(() => { updateState({ frameWidth: dimensions.width, frameHeight: dimensions.height });