From 303caf9ba22b44b93b94b8c11634476bfd1b4d9d Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:51:38 -0300 Subject: [PATCH] Fix deleteAddressbookContact (#5672) --- src/Client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.js b/src/Client.js index ece5c2f..1cb4ef8 100644 --- a/src/Client.js +++ b/src/Client.js @@ -2427,7 +2427,8 @@ class Client extends EventEmitter { async deleteAddressbookContact(phoneNumber) { return await this.pupPage.evaluate(async (phoneNumber) => { - return await window.Store.AddressbookContactUtils.deleteContactAction(phoneNumber); + const wid = window.Store.WidFactory.createWid(phoneNumber); + return await window.Store.AddressbookContactUtils.deleteContactAction({phoneNumber: wid}); }, phoneNumber); }