From 0f66e2b5e30623fe84a830ba5fd2b42ccf4a3b0c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 10 Sep 2019 08:24:55 -0500 Subject: [PATCH] Use correct method to scan the nodes --- iOS/SceneCoordinator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 531c43945..7b33a202a 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -604,7 +604,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } func masterFeedIndexPathForCurrentTimeline() -> IndexPath? { - guard let node = treeController.rootNode.descendantNode(where: { return $0.representedObject === timelineFetcher as AnyObject }) else { + guard let node = treeController.rootNode.descendantNodeRepresentingObject(timelineFetcher as AnyObject) else { return nil } return indexPathFor(node)