Make next unread button work with new async feed functionality.

This commit is contained in:
Maurice Parker
2019-11-24 13:37:56 -06:00
parent 4ea655df79
commit 5c4cd072ce
3 changed files with 30 additions and 19 deletions

View File

@@ -76,8 +76,6 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
resetUI()
applyChanges(animated: false)
title = coordinator.timelineFeed?.nameForDisplay ?? "Timeline"
// Restore the scroll position if we have one stored
if let restoreIndexPath = coordinator.timelineMiddleIndexPath {
tableView.scrollToRow(at: restoreIndexPath, at: .middle, animated: false)
@@ -509,6 +507,8 @@ private extension MasterTimelineViewController {
func resetUI() {
title = coordinator.timelineFeed?.nameForDisplay ?? "Timeline"
if let titleView = navigationItem.titleView as? MasterTimelineTitleView {
titleView.iconView.iconImage = coordinator.timelineIconImage
titleView.label.text = coordinator.timelineFeed?.nameForDisplay