Skip to content

Commit 4b78b10

Browse files
authored
Merge pull request #8042 from woocommerce/issue/8020-fix-push-deeplink
Fix order notification deeplink
2 parents e5400f4 + aeb02b5 commit 4b78b10

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

WooCommerce/Classes/Notifications/PushNotificationsManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

WooCommerce/Classes/ViewRelated/MainTabBarController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)