Skip to content

Commit

Permalink
fix: Fixed isUnreadTypeMsg function for WhatsApp >= 2.2310.4
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Feb 28, 2023
1 parent 4c2a20b commit 0d1340d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/whatsapp/functions/isUnreadTypeMsg.ts
Expand Up @@ -27,10 +27,12 @@ exportModule(
{
isUnreadTypeMsg: [
'isUnreadTypeMsg', // < 2.2308.6
'isUnreadType',
'isUnreadType', // >= 2.2308.6, < 2.2310.4
'getIsUnreadType', // >= 2.2310.4
],
},
(m) =>
m.isUnreadTypeMsg || // < 2.2308.6
m.isUnreadType
m.isUnreadType || // >= 2.2308.6, < 2.2310.4
m.getIsUnreadType // >= 2.2310.4
);

0 comments on commit 0d1340d

Please sign in to comment.