From 9f56030b7930a5985727c4354e38d09999f444c7 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 11 Nov 2017 19:34:10 -0800 Subject: [PATCH] =?UTF-8?q?Calculate=20the=20Account=E2=80=99s=20unread=20?= =?UTF-8?q?count=20by=20looking=20at=20the=20set=20of=20flattened=20feeds?= =?UTF-8?q?=20=E2=80=94=20this=20way=20a=20given=20feed=20(which=20can=20o?= =?UTF-8?q?ccur=20more=20than=20once)=20is=20counted=20only=20once.=20Fix?= =?UTF-8?q?=20#101.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/Account/Account.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index 9fdc1640f..48abbafb3 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -558,8 +558,8 @@ private extension Account { } func updateUnreadCount() { - - unreadCount = calculateUnreadCount(children) + + unreadCount = calculateUnreadCount(flattenedFeeds()) } func noteStatusesForArticlesDidChange(_ articles: Set
) {