whatsapp-web.js 1.33.1 → 1.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Client.js +1 -1
- package/src/util/Injected/Utils.js +2 -2
package/package.json
CHANGED
package/src/Client.js
CHANGED
|
@@ -234,7 +234,7 @@ class Client extends EventEmitter {
|
|
|
234
234
|
* @type {ClientInfo}
|
|
235
235
|
*/
|
|
236
236
|
this.info = new ClientInfo(this, await this.pupPage.evaluate(() => {
|
|
237
|
-
return { ...window.Store.Conn.serialize(), wid: window.Store.User.
|
|
237
|
+
return { ...window.Store.Conn.serialize(), wid: window.Store.User.getMaybeMePnUser() || window.Store.User.getMaybeMeLidUser() };
|
|
238
238
|
}));
|
|
239
239
|
|
|
240
240
|
this.interface = new InterfaceController(this);
|
|
@@ -242,7 +242,7 @@ exports.LoadUtils = () => {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
const lidUser = window.Store.User.getMaybeMeLidUser();
|
|
245
|
-
const meUser = window.Store.User.
|
|
245
|
+
const meUser = window.Store.User.getMaybeMePnUser();
|
|
246
246
|
const newId = await window.Store.MsgKey.newId();
|
|
247
247
|
let from = chat.id.isLid() ? lidUser : meUser;
|
|
248
248
|
let participant;
|
|
@@ -839,7 +839,7 @@ exports.LoadUtils = () => {
|
|
|
839
839
|
|
|
840
840
|
window.WWebJS.rejectCall = async (peerJid, id) => {
|
|
841
841
|
peerJid = peerJid.split('@')[0] + '@s.whatsapp.net';
|
|
842
|
-
let userId = window.Store.User.
|
|
842
|
+
let userId = window.Store.User.getMaybeMePnUser().user + '@s.whatsapp.net';
|
|
843
843
|
const stanza = window.Store.SocketWap.wap('call', {
|
|
844
844
|
id: window.Store.SocketWap.generateId(),
|
|
845
845
|
from: window.Store.SocketWap.USER_JID(userId),
|