Fix getCommonGroups (#3921)
This commit is contained in:
parent
0cdfda238f
commit
b3caffa796
1 changed files with 1 additions and 1 deletions
|
|
@ -1531,7 +1531,7 @@ class Client extends EventEmitter {
|
|||
const commonGroups = await this.pupPage.evaluate(async (contactId) => {
|
||||
let contact = window.Store.Contact.get(contactId);
|
||||
if (!contact) {
|
||||
const wid = window.Store.WidFactory.createUserWid(contactId);
|
||||
const wid = window.Store.WidFactory.createWid(contactId);
|
||||
const chatConstructor = window.Store.Contact.getModelsArray().find(c=>!c.isGroup).constructor;
|
||||
contact = new chatConstructor({id: wid});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue