Check AuthorAvatarDownloader cache first so a replaced avatar shows.

This commit is contained in:
Brent Simmons committed 2026-10-29 09:12:16 -07:00
1 parent 56764611d3
commit c699ed91e4
1 file changed
+1 -4
+1 -4
View File
@@ -174,13 +174,10 @@ private extension IconImageCache {
}
func imageForAuthor(_ author: Author) -> IconImage? {
if let iconImage = authorIconImageCache[author] {
return iconImage
}
if let iconImage = AuthorAvatarDownloader.shared.cachedImage(for: author) {
authorIconImageCache[author] = iconImage
return iconImage
}
return nil
return authorIconImageCache[author]
}
}