Load saved thumbnail URLs before applying changes to the timeline.

This commit is contained in:
Brent Simmons committed 2026-10-30 17:19:29 -07:00
1 parent b17bb24a67
commit 3d6a4fc4d7
1 file changed
+2
@@ -1132,10 +1132,12 @@ private extension MainTimelineViewController {
}
/// Finds thumbnails in the HTML of articles with no provided image. Local work, no downloads.
/// Saved results are ready when this returns, so rows laid out next get their final heights.
func discoverThumbnailURLs() {
guard thumbnailMode != nil, let articles, !articles.isEmpty else {
return
}
ArticleThumbnailFinder.shared.loadSavedThumbnailURLs(for: articles)
Task {
await ArticleThumbnailFinder.shared.discoverThumbnailURLs(for: articles)
}