Clear the feed when we navigate back to the Feeds and Timeline isn't showing.

This commit is contained in:
Maurice Parker 2019-09-10 17:02:41 -05:00
parent aac3c86561
commit c470e56c39
1 changed files with 6 additions and 1 deletions

View File

@ -1058,9 +1058,14 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
extension SceneCoordinator: UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
if rootSplitViewController.isCollapsed && viewController === masterFeedViewController {
if viewController === masterFeedViewController {
activityManager.invalidateCurrentActivities()
if !rootSplitViewController.isCollapsed {
selectFeed(nil)
}
}
}
}