Skip to content

Commit 891cbc0

Browse files
levinli303claude
andcommitted
Drop the Task.detached wrapper in didReceive
The method is already @mainactor, so pushManager.handleTap can be called directly — the detached Task was a no-op trip through the scheduler. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b8b2415 commit 891cbc0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

MobileCelestia/AppDelegate.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
690690
let userInfo = response.notification.request.content.userInfo
691691
let articleID = userInfo["article-id"] as? String
692692
let addonID = userInfo["addon-id"] as? String
693-
Task.detached { @MainActor in
694-
self.pushManager.handleTap(articleID: articleID, addonID: addonID)
695-
}
693+
pushManager.handleTap(articleID: articleID, addonID: addonID)
696694
}
697695
}
698696
#endif

0 commit comments

Comments
 (0)