Skip to content

Commit

Permalink
fix: Fixed exported class Wap for old WhatsApp version
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 21, 2022
1 parent 63a021d commit b71b222
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/whatsapp/misc/Wap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export declare const Wap: WapClass;
exportModule(
exports,
{
Wap: (m) => m.instance || m.Cmd,
WapClass: (m) => m.instance?.constructor || m.Wap,
Wap: (m) => m.instance || m.default,
},
(m) => !m.default && m.instance.queryExist
(m) => (!m.default && m.instance?.queryExist) || (m.default && m.Wap)
);

0 comments on commit b71b222

Please sign in to comment.