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),