Fix Block Contact (#127093)

This commit is contained in:
BenyFilho 2026-03-08 11:56:04 -03:00 • committed by GitHub
commit c2d978fd0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;