Skip to content

Commit

Permalink
fix: Fixed WPP.chat.getMessages function for WhatsApp >= 2.2301.5
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 10, 2023
1 parent c01d81f commit dee775a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/whatsapp/functions/msgFindQuery.ts
Expand Up @@ -39,5 +39,7 @@ exportModule(
{
msgFindQuery: 'msgFindQuery',
},
(m) => m.msgFindQuery && m.msgFindByIds
(m) =>
(m.msgFindQuery && m.msgFindByIds) || // @whatsapp < 2.2301.5
(m.msgFindQuery && m.getMsgsByMsgKey) // @whatsapp >= 2.2301.5
);

0 comments on commit dee775a

Please sign in to comment.