From 613cea5c7a617b5125015be8d384cf888cabd577 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 2 Sep 2019 17:24:20 -0500 Subject: [PATCH] Change next unread function so that it skips the current article even if that article is marked as unread --- iOS/SceneCoordinator.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 1f7dccaad..e3e469baa 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -879,7 +879,7 @@ private extension SceneCoordinator { func selectNextUnreadArticleInTimeline() -> Bool { let startingRow: Int = { if let indexPath = currentArticleIndexPath { - return indexPath.row + return indexPath.row + 1 } else { return 0 } @@ -890,6 +890,10 @@ private extension SceneCoordinator { func selectArticleInTimeline(startingRow: Int) -> Bool { + guard startingRow < articles.count else { + return false + } + for i in startingRow..