mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 09:50:16 +00:00
Check AuthorAvatarDownloader cache first so a replaced avatar shows.
This commit is contained in:
1 parent
56764611d3
commit
c699ed91e4
1 file changed
+1
-4
@@ -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]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user