From 8bf711a2e2f399868aac4f9a95492a08bfecce5c Mon Sep 17 00:00:00 2001 From: yougotwill Date: Tue, 20 Aug 2024 11:34:44 +1000 Subject: [PATCH] fix: no need for empty url check in pending init --- ts/components/conversation/Image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/conversation/Image.tsx b/ts/components/conversation/Image.tsx index 33c1ceeec..9257dafff 100644 --- a/ts/components/conversation/Image.tsx +++ b/ts/components/conversation/Image.tsx @@ -84,7 +84,7 @@ export const Image = (props: Props) => { ); const { caption } = attachment || { caption: null }; - const [pending, setPending] = useState(attachment.pending || !url || true); + const [pending, setPending] = useState(attachment.pending || true); const [mounted, setMounted] = useState( (!loading || !pending) && urlToLoad === undefined );