Fix scenario where multiple timelines could get pushed onto the navigation stack
This commit is contained in:
parent
3d408d0b27
commit
c3e93f4b8c
|
@ -508,7 +508,7 @@ class AppCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
func selectFeed(_ indexPath: IndexPath) {
|
func selectFeed(_ indexPath: IndexPath) {
|
||||||
if let _ = navControllerForTimeline().viewControllers.first as? MasterTimelineViewController {
|
if navControllerForTimeline().viewControllers.filter({ $0 is MasterTimelineViewController }).count > 0 {
|
||||||
currentMasterIndexPath = indexPath
|
currentMasterIndexPath = indexPath
|
||||||
} else {
|
} else {
|
||||||
masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
|
masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
|
||||||
|
|
Loading…
Reference in New Issue