From 28a1ca85c3cb84bc220dc7abeb5a42fc211a96e8 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 21 Jan 2026 14:37:52 -0800 Subject: [PATCH] =?UTF-8?q?Fixed=20bug=20that=20could=20cause=20the=20wron?= =?UTF-8?q?g=20feed=20to=20be=20displayed=20in=20the=20timeline=20?= =?UTF-8?q?=E2=80=94=C2=A0we=20were=20checking=20for=20indexpath=20and=20n?= =?UTF-8?q?ot=20feed=20identity.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/SceneCoordinator.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index aa36d083f..fbe09f713 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -917,7 +917,12 @@ struct SidebarItemNode: Hashable, Sendable { func selectSidebarItem(indexPath: IndexPath?, animations: Animations = [], deselectArticle: Bool = true, completion: (() -> Void)? = nil) { Self.logger.debug("SceneCoordinator: selectSidebarItem") - guard indexPath != currentFeedIndexPath else { + // Compare by feed identity, not indexPath — indexPath can change when feeds are added/removed + var tappedFeed: AnyObject? + if let indexPath { + tappedFeed = nodeFor(indexPath)?.representedObject as AnyObject? + } + guard tappedFeed !== timelineFeed as AnyObject? else { completion?() return }