From 98d17fd950c2dea62d15d970bc8509a4b8a17ff9 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 18 Feb 2026 17:46:45 +0000 Subject: [PATCH] Fix native-only function being called on web (#9904) --- src/Navigation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Navigation.tsx b/src/Navigation.tsx index c2eac7d6b4..a9b3c00585 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -885,7 +885,6 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { const emailDialogControl = useEmailDialogControl() const closeAllActiveElements = useCloseAllActiveElements() const linkingUrl = Linking.useLinkingURL() - const notificationResponse = Notifications.useLastNotificationResponse() /** * Handle navigation to a conversation, or prepares for account switch. @@ -926,6 +925,8 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { // intent urls are handled by `useIntentHandler` if (linkingUrl) return + const notificationResponse = Notifications.getLastNotificationResponse() + if (notificationResponse) { notyLogger.debug(`handlePushNotificationEntry: response`, { response: notificationResponse,