From 6b0985c2c4dc81547aee0eefa35d90ff7366bcc3 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 31 Jan 2026 20:16:08 -0800 Subject: [PATCH] Skip clearing the restored article during state restoration. --- iOS/SceneCoordinator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 8d538aaea..ca41e1ef6 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1546,7 +1546,8 @@ extension SceneCoordinator: UINavigationControllerDelegate { // Don't clear it if we have pushed an ArticleViewController, but don't yet see it on the navigation stack. // This happens when we are going to the next unread and we need to grab another timeline to continue. The // ArticleViewController will be pushed, but we will briefly show the Timeline. Don't clear things out when that happens. - if viewController === mainTimelineViewController && rootSplitViewController.isCollapsed && !isArticleViewControllerPending { + // Also skip during state restoration so we don't clear the restored article. + if viewController === mainTimelineViewController && rootSplitViewController.isCollapsed && !isArticleViewControllerPending && !isRestoringState { currentArticle = nil mainTimelineViewController?.updateArticleSelection(animations: [.scroll, .select, .navigation]) activityManager.invalidateReading()