Fix native-only function being called on web (#9904)
This commit is contained in:
+2
-1
@@ -885,7 +885,6 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
|
|||||||
const emailDialogControl = useEmailDialogControl()
|
const emailDialogControl = useEmailDialogControl()
|
||||||
const closeAllActiveElements = useCloseAllActiveElements()
|
const closeAllActiveElements = useCloseAllActiveElements()
|
||||||
const linkingUrl = Linking.useLinkingURL()
|
const linkingUrl = Linking.useLinkingURL()
|
||||||
const notificationResponse = Notifications.useLastNotificationResponse()
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle navigation to a conversation, or prepares for account switch.
|
* 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`
|
// intent urls are handled by `useIntentHandler`
|
||||||
if (linkingUrl) return
|
if (linkingUrl) return
|
||||||
|
|
||||||
|
const notificationResponse = Notifications.getLastNotificationResponse()
|
||||||
|
|
||||||
if (notificationResponse) {
|
if (notificationResponse) {
|
||||||
notyLogger.debug(`handlePushNotificationEntry: response`, {
|
notyLogger.debug(`handlePushNotificationEntry: response`, {
|
||||||
response: notificationResponse,
|
response: notificationResponse,
|
||||||
|
|||||||
Reference in New Issue
Block a user