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:
parent
0fe8cbd360
commit
9f56030b79
|
@ -558,8 +558,8 @@ private extension Account {
|
|||
}
|
||||
|
||||
func updateUnreadCount() {
|
||||
|
||||
unreadCount = calculateUnreadCount(children)
|
||||
|
||||
unreadCount = calculateUnreadCount(flattenedFeeds())
|
||||
}
|
||||
|
||||
func noteStatusesForArticlesDidChange(_ articles: Set<Article>) {
|
||||
|
|
Loading…
Reference in New Issue