From 4ac22c8c3721d82343213574fecd011c9c758826 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Mon, 1 Sep 2025 21:56:56 -0300 Subject: [PATCH] fix Event Ready Again and SendMessage (#3747) * fix Event Ready Again * Fixing SendMessage * Fixing RejectCall --- src/Client.js | 2 +- src/util/Injected/Utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.js b/src/Client.js index 306697c..c1bd939 100644 --- a/src/Client.js +++ b/src/Client.js @@ -234,7 +234,7 @@ class Client extends EventEmitter { * @type {ClientInfo} */ this.info = new ClientInfo(this, await this.pupPage.evaluate(() => { - return { ...window.Store.Conn.serialize(), wid: window.Store.User.getMaybeMeUser() }; + return { ...window.Store.Conn.serialize(), wid: window.Store.User.getMaybeMePnUser() || window.Store.User.getMaybeMeLidUser() }; })); this.interface = new InterfaceController(this); diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index bce694d..4b80da9 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -242,7 +242,7 @@ exports.LoadUtils = () => { } const lidUser = window.Store.User.getMaybeMeLidUser(); - const meUser = window.Store.User.getMaybeMeUser(); + const meUser = window.Store.User.getMaybeMePnUser(); const newId = await window.Store.MsgKey.newId(); let from = chat.id.isLid() ? lidUser : meUser; let participant; @@ -839,7 +839,7 @@ exports.LoadUtils = () => { window.WWebJS.rejectCall = async (peerJid, id) => { peerJid = peerJid.split('@')[0] + '@s.whatsapp.net'; - let userId = window.Store.User.getMaybeMeUser().user + '@s.whatsapp.net'; + let userId = window.Store.User.getMaybeMePnUser().user + '@s.whatsapp.net'; const stanza = window.Store.SocketWap.wap('call', { id: window.Store.SocketWap.generateId(), from: window.Store.SocketWap.USER_JID(userId),