Skip to content

Commit

Permalink
changing method to use the idempotencyKey
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Mar 12, 2024
1 parent 15d4c7d commit df6bd26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/actions/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ function openApp() {
function reconnectApp(updateIDFrom: OnyxEntry<number> = 0) {
console.debug(`[OnyxUpdates] App reconnecting with updateIDFrom: ${updateIDFrom}`);
getPolicyParamsForOpenOrReconnect().then((policyParams) => {
const params: ReconnectAppParams = {...policyParams};
const params: ReconnectAppParams = {
...policyParams,
idempotencyKey:`${WRITE_COMMANDS.RECONNECT_APP}`,
};

// When the app reconnects we do a fast "sync" of the LHN and only return chats that have new messages. We achieve this by sending the most recent reportActionID.
// we have locally. And then only update the user about chats with messages that have occurred after that reportActionID.
Expand Down

0 comments on commit df6bd26

Please sign in to comment.