Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ private extension PushNotificationsManager {
/// Handles a remote notification while the app is inactive.
///
/// - Parameter notification: Push notification content from a remote notification.
@MainActor
func handleInactiveRemoteNotification(notification: PushNotification) async {
guard applicationState == .inactive else {
return
Expand Down
6 changes: 2 additions & 4 deletions WooCommerce/Classes/ViewRelated/MainTabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,8 @@ extension MainTabBarController {
}
let siteID = Int64(note.meta.identifier(forKey: .site) ?? Int.min)

switchToStore(with: siteID, onCompletion: { siteChanged in
if siteChanged {
presentNotificationDetails(for: note)
}
switchToStore(with: siteID, onCompletion: { _ in
presentNotificationDetails(for: note)
})
}
ServiceLocator.stores.dispatch(action)
Expand Down