Fix bug that prevented reading article user activities from being restored

This commit is contained in:
Maurice Parker
2019-08-31 20:23:14 -05:00
parent 87030a5921
commit 27883632d0
2 changed files with 15 additions and 10 deletions

View File

@@ -400,7 +400,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
reloadAllVisibleCells()
}
func discloseFeed(_ feed: Feed) {
func discloseFeed(_ feed: Feed, completion: (() -> Void)? = nil) {
guard let node = coordinator.rootNode.descendantNodeRepresentingObject(feed as AnyObject) else {
return
@@ -424,6 +424,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
if let indexPath = self?.coordinator.indexPathFor(node) {
self?.tableView.scrollToRow(at: indexPath, at: .middle, animated: true)
self?.coordinator.selectFeed(indexPath)
completion?()
}
}