mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
fix: group chat create (#1319)
This commit is contained in:
@@ -999,7 +999,7 @@ class Client extends EventEmitter {
|
|||||||
|
|
||||||
const createRes = await this.pupPage.evaluate(async (name, participantIds) => {
|
const createRes = await this.pupPage.evaluate(async (name, participantIds) => {
|
||||||
const participantWIDs = participantIds.map(p => window.Store.WidFactory.createWid(p));
|
const participantWIDs = participantIds.map(p => window.Store.WidFactory.createWid(p));
|
||||||
const id = window.Store.genId();
|
const id = window.Store.MsgKey.newId();
|
||||||
const res = await window.Store.GroupUtils.sendCreateGroup(name, participantWIDs, undefined, id);
|
const res = await window.Store.GroupUtils.sendCreateGroup(name, participantWIDs, undefined, id);
|
||||||
return res;
|
return res;
|
||||||
}, name, participants);
|
}, name, participants);
|
||||||
|
|||||||
Reference in New Issue
Block a user