Skip to content

Commit

Permalink
Merge pull request #39019 from Expensify/arosiclair-push-received-opt-in
Browse files Browse the repository at this point in the history
[No QA] Stop calling OptInToPushNotifications when receiving notifications
  • Loading branch information
roryabraham authored Mar 26, 2024
2 parents 6e17f33 + b965f8c commit 20f083f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libs/Notification/PushNotification/index.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ function refreshNotificationOptInStatus() {
const init: Init = () => {
// Setup event listeners
Airship.addListener(EventType.PushReceived, (notification) => {
// By default, refresh notification opt-in status to true if we receive a notification
if (!isUserOptedInToPushNotifications) {
PushNotificationActions.setPushNotificationOptInStatus(true);
}

pushNotificationEventCallback(EventType.PushReceived, notification.pushPayload);
});

Expand Down

0 comments on commit 20f083f

Please sign in to comment.