From 16e54269d7c19e7f10c79a0a5eb92556e34d2dac Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 3 Nov 2026 09:53:28 -0800 Subject: [PATCH] Load icons at start of background refresh, so widgets and notifications are more likely to get their proper icons. --- iOS/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index e8d5e7a41..b4405e858 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -459,6 +459,10 @@ private extension AppDelegate { if AccountManager.shared.isSuspended { AccountManager.shared.resumeAll() } + // After a launch in the background nothing has asked for icons yet, so widgets and + // new-article notifications would get generated placeholders. Their files load during the refresh. + let feeds = AccountManager.shared.activeAccounts.flatMap { $0.flattenedFeeds() } + IconImageCache.shared.prefetchImagesForFeeds(feeds) let didRefresh = await AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log) if !Task.isCancelled { await WidgetDataEncoder.shared?.encodeAndWait()