From c2d978fd0af74db4addbf3bb62475b1124512f96 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:56:04 -0300 Subject: [PATCH] Fix Block Contact (#127093) --- src/structures/Contact.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;