aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/messages.js')
-rw-r--r--src/features/messages.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js
index bbec23e..3ab64d9 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -5680,7 +5680,9 @@ export function messagesFeature(ctx) {
const task = (async () => {
const got = (await storedMediaThumb(url)) || (await makeMediaThumb(url).catch(() => null));
if (got) {
- if (got.thumb) await decodeAhead(got.thumb);
+ // no copy (small already, or a GIF): the original is what paints,
+ // so it's the one decoded ahead — the row mustn't decode it on sight
+ await decodeAhead(got.thumb || url);
mediaReady.set(url, got);
return;
}