Mark as read just before display. Fixes #3037
Marking an article as read just before navigating to it prevents the read status from flashing unread/read on display when swiping to new unread articles, or navigating with the next article toolbar button.
This commit is contained in:
parent
eddc763c52
commit
bc056e4952
@ -853,11 +853,11 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
|||||||
currentArticleViewController = articleViewController!
|
currentArticleViewController = articleViewController!
|
||||||
}
|
}
|
||||||
|
|
||||||
masterTimelineViewController?.updateArticleSelection(animations: animations)
|
// Mark article as read before navigating to it, so the read status does not flash unread/read on display
|
||||||
currentArticleViewController.article = article
|
|
||||||
|
|
||||||
markArticles(Set([article!]), statusKey: .read, flag: true)
|
markArticles(Set([article!]), statusKey: .read, flag: true)
|
||||||
|
|
||||||
|
masterTimelineViewController?.updateArticleSelection(animations: animations)
|
||||||
|
currentArticleViewController.article = article
|
||||||
}
|
}
|
||||||
|
|
||||||
func beginSearching() {
|
func beginSearching() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user