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
1 changed files with 2 additions and 2 deletions

View File

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