Fix Block Contact (#127093)
This commit is contained in:
parent
d933a0881f
commit
c2d978fd0a
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ class Contact extends Base {
|
|||
if(this.isGroup) return false;
|
||||
|
||||
await this.client.pupPage.evaluate(async (contactId) => {
|
||||
const contact = (window.require('WAWebCollections')).Contact.get(contactId);
|
||||
await (window.require('WAWebBlockContactAction')).blockContact({contact});
|
||||
const chat = await window.WWebJS.getChat(contactId);
|
||||
await (window.require('WAWebBlockContactAction')).blockContact({'contact':chat});
|
||||
}, this.id._serialized);
|
||||
|
||||
this.isBlocked = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue