Skip to content

Commit

Permalink
fix: Fixed ninth digit problem for groups (close #372)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Dec 1, 2020
1 parent ee970dd commit 7017dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/wapi/functions/create-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@ export async function createGroup(name, contactsId) {
contactsId = [contactsId];
}

contactsId = await Promise.all(contactsId.map((c) => WAPI.sendExist(c)));
contactsId = contactsId.filter((c) => !c.erro).map((c) => c.id);

return await window.Store.WapQuery.createGroup(name, contactsId);
}

3 comments on commit 7017dea

@leandrogmuller
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create a night zip file?

@leandrogmuller
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to update the source but I didn't find file on lib/wapi/functions/create-group.js.

@edgardmessias
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leandrogmuller Each commit generate a new nightly release, you can reinstall using npm i --save https://github.com/orkestral/venom/releases/download/nightly/venom-bot-nightly.tgz
And all files are merged a single wapi.js

Please sign in to comment.