From 715671edad84cef71a65e2f2ce67c0a615935a9e Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 28 Mar 2020 01:43:54 -0500 Subject: [PATCH] Rebuild the Feeds list when coming back to it from the Timeline while the root split is collapsed to filter read Feeds. --- iOS/SceneCoordinator.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 470822377..0929f16c4 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -441,7 +441,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { return } - rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults)) + queueRebuildBackingStores() } @objc func statusesDidChange(_ note: Notification) { @@ -740,6 +740,9 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } else { setTimelineFeed(nil, animated: false) { + if self.isReadFeedsFiltered { + self.queueRebuildBackingStores() + } self.activityManager.invalidateSelecting() if self.rootSplitViewController.isCollapsed && self.navControllerForTimeline().viewControllers.last is MasterTimelineViewController { self.navControllerForTimeline().popViewController(animated: animations.contains(.navigation)) @@ -1355,6 +1358,10 @@ private extension SceneCoordinator { } } } + + func queueRebuildBackingStores() { + rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults)) + } @objc func rebuildBackingStoresWithDefaults() { rebuildBackingStores()