Skip to content

Commit

Permalink
fix: Fixed WPP.chat.editMessage function for WhatsApp >= 2.2318.7
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Apr 28, 2023
1 parent fad42cd commit 7a46aa0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/whatsapp/functions/canEditMsg.ts
Expand Up @@ -25,7 +25,12 @@ export declare function canEditMsg(msg: MsgModel): boolean;
exportModule(
exports,
{
canEditMsg: 'canEditMsg',
canEditMsg: [
'canEditText', // @whatsapp >= 2.2318.7
'canEditMsg',
],
},
(m) => m.canEditMsg
(m) =>
m.canEditMsg || // @whatsapp >= 2.2318.7
m.canEditText
);

0 comments on commit 7a46aa0

Please sign in to comment.