From df6bd265b0a6bd6089ed01d470718b225bd8f371 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 12 Mar 2024 17:13:06 +0100 Subject: [PATCH] changing method to use the idempotencyKey --- src/libs/actions/App.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/App.ts b/src/libs/actions/App.ts index 6442f2ec0ee..6665e4f6b68 100644 --- a/src/libs/actions/App.ts +++ b/src/libs/actions/App.ts @@ -222,7 +222,10 @@ function openApp() { function reconnectApp(updateIDFrom: OnyxEntry = 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.