From 117b5aa779e368a137e71bcfc35f05abb676adb9 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 8 Jan 2026 16:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20selection=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve `SceneDelegate` selection logic: - select the correct feed before selecting the article --- iOS/SceneDelegate.swift | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index fc5f15c92..7f27b2d82 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -138,9 +138,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate { } self.coordinator.selectAllUnreadFeed { DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { - self.coordinator.selectAllUnreadFeed { - self.coordinator.selectArticleInCurrentFeed(id!) - } + self.coordinator.selectArticleInCurrentFeed(id!) } } } else { @@ -156,8 +154,8 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate { if AccountManager.shared.isSuspended { AccountManager.shared.resumeAll() } - DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { - self.coordinator.selectTodayFeed { + self.coordinator.selectTodayFeed { + DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { self.coordinator.selectArticleInCurrentFeed(id!) } } @@ -174,8 +172,8 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate { if AccountManager.shared.isSuspended { AccountManager.shared.resumeAll() } - DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { - self.coordinator.selectStarredFeed { + self .coordinator.selectStarredFeed { + DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) { self.coordinator.selectArticleInCurrentFeed(id!) } }