diff --git a/iOS/MasterTimeline/MasterTimelineViewController.swift b/iOS/MasterTimeline/MasterTimelineViewController.swift index 56ec766f8..e400514af 100644 --- a/iOS/MasterTimeline/MasterTimelineViewController.swift +++ b/iOS/MasterTimeline/MasterTimelineViewController.swift @@ -102,7 +102,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner } @IBAction func firstUnread(_ sender: Any) { - coordinator.selectNextUnread() + coordinator.selectFirstUnread() } // MARK: Keyboard shortcuts diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 6ad03b19a..a74707394 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1173,7 +1173,7 @@ private extension SceneCoordinator { @discardableResult func selectFirstUnreadArticleInTimeline() -> Bool { - return selectNextArticleInTimeline(startingRow: 0) + return selectNextArticleInTimeline(startingRow: 0, animated: true) } @discardableResult @@ -1186,10 +1186,10 @@ private extension SceneCoordinator { } }() - return selectNextArticleInTimeline(startingRow: startingRow) + return selectNextArticleInTimeline(startingRow: startingRow, animated: false) } - func selectNextArticleInTimeline(startingRow: Int) -> Bool { + func selectNextArticleInTimeline(startingRow: Int, animated: Bool) -> Bool { guard startingRow < articles.count else { return false @@ -1198,7 +1198,7 @@ private extension SceneCoordinator { for i in startingRow..