File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,7 @@ private extension PushNotificationsManager {
477477 /// Handles a remote notification while the app is inactive.
478478 ///
479479 /// - Parameter notification: Push notification content from a remote notification.
480+ @MainActor
480481 func handleInactiveRemoteNotification( notification: PushNotification ) async {
481482 guard applicationState == . inactive else {
482483 return
Original file line number Diff line number Diff line change @@ -337,10 +337,8 @@ extension MainTabBarController {
337337 }
338338 let siteID = Int64 ( note. meta. identifier ( forKey: . site) ?? Int . min)
339339
340- switchToStore ( with: siteID, onCompletion: { siteChanged in
341- if siteChanged {
342- presentNotificationDetails ( for: note)
343- }
340+ switchToStore ( with: siteID, onCompletion: { _ in
341+ presentNotificationDetails ( for: note)
344342 } )
345343 }
346344 ServiceLocator . stores. dispatch ( action)
You can’t perform that action at this time.
0 commit comments