From e026e159d16d24b0fb1e18c135b8bd0f9e44110b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 25 Nov 2017 18:05:20 -0800 Subject: [PATCH] Rebuild the feed dictionary at appropriate times. Fix #169. --- Frameworks/Account/Account.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index c58ed8523..f523a627a 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -253,6 +253,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, didAddFeed = true } + rebuildFeedDictionaries() return didAddFeed // TODO } @@ -290,6 +291,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, } children += [folder] postChildrenDidChangeNotification() + rebuildFeedDictionaries() return true } @@ -396,7 +398,8 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, } @objc func batchUpdateDidPerform(_ note: Notification) { - + + rebuildFeedDictionaries() updateUnreadCount() }