Calculate the Account’s unread count by looking at the set of flattened feeds — this way a given feed (which can occur more than once) is counted only once. Fix #101.

This commit is contained in:
Brent Simmons 2017-11-11 19:34:10 -08:00
parent 0fe8cbd360
commit 9f56030b79

View File

@ -559,7 +559,7 @@ private extension Account {
func updateUnreadCount() { func updateUnreadCount() {
unreadCount = calculateUnreadCount(children) unreadCount = calculateUnreadCount(flattenedFeeds())
} }
func noteStatusesForArticlesDidChange(_ articles: Set<Article>) { func noteStatusesForArticlesDidChange(_ articles: Set<Article>) {