Fix scenario where multiple timelines could get pushed onto the navigation stack

This commit is contained in:
Maurice Parker 2019-08-26 09:07:41 -05:00
parent 3d408d0b27
commit c3e93f4b8c
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ class AppCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func selectFeed(_ indexPath: IndexPath) {
if let _ = navControllerForTimeline().viewControllers.first as? MasterTimelineViewController {
if navControllerForTimeline().viewControllers.filter({ $0 is MasterTimelineViewController }).count > 0 {
currentMasterIndexPath = indexPath
} else {
masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)