From 8ad2cecb33b8c4c821be53107181786eaaf9c602 Mon Sep 17 00:00:00 2001 From: Edgard Date: Sun, 14 Jan 2024 17:42:29 -0300 Subject: [PATCH] fix: Fixed getHistorySyncProgress function compatibility with WhatsApp >= 2.2402.2 --- src/whatsapp/functions/getHistorySyncProgress.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/whatsapp/functions/getHistorySyncProgress.ts b/src/whatsapp/functions/getHistorySyncProgress.ts index de4a2fb303..44143a93c0 100644 --- a/src/whatsapp/functions/getHistorySyncProgress.ts +++ b/src/whatsapp/functions/getHistorySyncProgress.ts @@ -25,7 +25,12 @@ export declare function getHistorySyncProgress(): HistorySyncProgressModel; exportModule( exports, { - getHistorySyncProgress: 'getHistorySyncProgress', + getHistorySyncProgress: [ + 'getHistorySyncProgressModel', // @whatsapp >= 2.2402.2 + 'getHistorySyncProgress', + ], }, - (m) => m.getHistorySyncProgress && !m.getHistorySyncLogDetailsString + (m) => + m.getHistorySyncProgressModel || // @whatsapp >= 2.2402.2 + (m.getHistorySyncProgress && !m.getHistorySyncLogDetailsString) );