From 6804fbb607f3dc6239cd8338f7411e8b42451210 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 29 May 2023 10:17:16 -0700 Subject: [PATCH] Attempt fix for randomly broken animated GIFs Changelog-Fixed: Attempt fix for randomly broken animated gifs --- damus/Util/EventCache.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift index 4f5e01ab..248ef77b 100644 --- a/damus/Util/EventCache.swift +++ b/damus/Util/EventCache.swift @@ -387,9 +387,12 @@ func preload_event(plan: PreloadPlan, state: DamusState) async { plan.data.artifacts_model.state = .loaded(arts) } + // jb55: image preloading might be breaking gifs? some kind of disk race condition perhaps? + /* for url in arts.images { preload_image(url: url) } + */ } if plan.load_preview {