diff --git a/src/structures/Contact.js b/src/structures/Contact.js index f7e2aa3..01138f3 100644 --- a/src/structures/Contact.js +++ b/src/structures/Contact.js @@ -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;