Skip clearing the restored article during state restoration.

This commit is contained in:
Brent Simmons committed 2026-01-31 20:16:08 -08:00
1 parent 97a76336b5
commit 6b0985c2c4
1 file changed
+2 -1
+2 -1
View File
@@ -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()