Merge pull request #3099 from babbage/bugfix/3037-unread-onload

Mark as read just before display. Fixes #3037
This commit is contained in:
Brent Simmons 2021-04-29 10:18:53 -07:00 committed by GitHub
commit f73facdef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -853,11 +853,11 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
currentArticleViewController = articleViewController!
}
// Mark article as read before navigating to it, so the read status does not flash unread/read on display
markArticles(Set([article!]), statusKey: .read, flag: true)
masterTimelineViewController?.updateArticleSelection(animations: animations)
currentArticleViewController.article = article
markArticles(Set([article!]), statusKey: .read, flag: true)
}
func beginSearching() {