fix: group chat create (#1319)

This commit is contained in:
ogxing 2022-03-29 10:56:07 +08:00 • committed by GitHub
commit a23c285f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -999,7 +999,7 @@ class Client extends EventEmitter {
const createRes = await this.pupPage.evaluate(async (name, participantIds) => {
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);
return res;
}, name, participants);