From 16c66513c1741cfcc74dade7a91ea7cb309496fb Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 2 Dec 2025 10:07:43 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20state=20restoration=20bug=20when=20showin?= =?UTF-8?q?g=20article=20not=20present=20in=20timeline=20=E2=80=94=C2=A0th?= =?UTF-8?q?is=20way=20its=20feed=20icon=20can=20be=20found.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/SceneCoordinator.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 4b3084eee..13c6a1d8d 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -717,6 +717,11 @@ final class SceneCoordinator: NSObject, UndoableCommandRunner { } func articleFor(_ articleID: String) -> Article? { + // Check if it's the currently displayed article + if let currentArticle, currentArticle.articleID == articleID { + return currentArticle + } + // Otherwise look in the timeline return idToArticleDictionary[articleID] }