From bc056e4952d6e6e05e3862c16ac0c89e997f65b4 Mon Sep 17 00:00:00 2001 From: Duncan Babbage Date: Thu, 29 Apr 2021 22:46:52 +1200 Subject: [PATCH] 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. --- iOS/SceneCoordinator.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index cffdff45d..c273d2354 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -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() {