whatsapp-web.js 1.33.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.33.0",
3
+ "version": "1.33.2",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
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.getMeUser() };
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.getMaybeMeUser();
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.getMaybeMeUser().user + '@s.whatsapp.net';
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),