Skip to content

Commit

Permalink
fix: Fixed getHistorySyncProgress function compatibility with WhatsAp…
Browse files Browse the repository at this point in the history
…p >= 2.2402.2
  • Loading branch information
edgardmessias committed Jan 14, 2024
1 parent 4b6efd3 commit 8ad2cec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/whatsapp/functions/getHistorySyncProgress.ts
Expand Up @@ -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)
);

0 comments on commit 8ad2cec

Please sign in to comment.