Don't process blurhash if we already have image cached

Changelog-Fixed: Don't process blurhash if we already have image cached
This commit is contained in:
William Casarin
2023-05-03 17:26:33 -07:00
parent af407f7eea
commit 5c557bc87d
2 changed files with 14 additions and 27 deletions

View File

@@ -385,10 +385,6 @@ func preload_event(plan: PreloadPlan, state: DamusState) async {
print("Preloading event \(plan.event.content)")
for meta in plan.img_metadata {
process_image_metadata(cache: state.events, meta: meta, ev: plan.event)
}
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)