Skip to content

Commit

Permalink
Merge pull request #39375 from Expensify/arosiclair-push-notif-one-to…
Browse files Browse the repository at this point in the history
…-one

[No QA] Use one API call when receiving push notifications
  • Loading branch information
arosiclair authored Apr 3, 2024
2 parents 7080295 + d81de8f commit 5dd611d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 67 deletions.

This file was deleted.

11 changes: 0 additions & 11 deletions src/libs/Notification/PushNotification/backgroundRefresh/index.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {OnyxUpdatesFromServer} from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import backgroundRefresh from './backgroundRefresh';
import PushNotification from './index';

let lastVisitedPath: string | undefined;
Expand Down Expand Up @@ -51,8 +50,6 @@ export default function subscribeToReportCommentPushNotifications() {
} else {
Log.hmmm("[PushNotification] Didn't apply onyx updates because some data is missing", {lastUpdateID, previousUpdateID, onyxDataCount: onyxData?.length ?? 0});
}

backgroundRefresh();
});

// Open correct report when push notification is clicked
Expand Down

0 comments on commit 5dd611d

Please sign in to comment.