Fix state restoration bug when showing article not present in timeline — this way its feed icon can be found.

This commit is contained in:
Brent Simmons committed 2025-12-02 10:07:43 -08:00
1 parent 546c05a628
commit 16c66513c1
1 file changed
+5
+5
View File
@@ -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]
}