Do not mark articles as read on scroll when they were manually toggled

This commit is contained in:
everhardt committed 2021-10-30 10:37:10 +02:00
1 parent 8bce42df56
commit 3b6a3cf4e7
4 files changed
+28 -2

No files matched your search

@@ -527,7 +527,10 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
return
}
guard let unreadArticlesScrolledAway = coordinator.articles.articlesAbove(article: firstVisibleArticle).unreadArticles() else { return }
guard let unreadArticlesScrolledAway = coordinator.articles
.articlesAbove(article: firstVisibleArticle)
.filter({ !coordinator.articlesWithManuallyChangedReadStatus.contains($0) })
.unreadArticles() else { return }
coordinator.markAllAsRead(unreadArticlesScrolledAway)