From 21be1416f754137dcc509fef6dad2452bf81193d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 5 May 2023 08:37:50 -0700 Subject: [PATCH] Don't preload pfps, it's not thread safe? --- damus/Util/EventCache.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/damus/Util/EventCache.swift b/damus/Util/EventCache.swift index 5751473f..d2d0617a 100644 --- a/damus/Util/EventCache.swift +++ b/damus/Util/EventCache.swift @@ -385,10 +385,12 @@ func preload_event(plan: PreloadPlan, state: DamusState) async { print("Preloading event \(plan.event.content)") + /* preload_pfp(profiles: profiles, pubkey: plan.event.pubkey) if let inner_ev = plan.event.get_inner_event(cache: state.events), inner_ev.pubkey != plan.event.pubkey { preload_pfp(profiles: profiles, pubkey: inner_ev.pubkey) } + */ if artifacts == nil && plan.load_artifacts { let arts = render_note_content(ev: plan.event, profiles: profiles, privkey: our_keypair.privkey)