@pney/whatsapp-web 1.34.6-1 → 1.34.6-3

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/Client.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pney/whatsapp-web",
3
- "version": "1.34.6-1",
3
+ "version": "1.34.6-3",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/pedroslopez/whatsapp-web.js.git"
15
+ "url": "git+https://github.com/wwebjs/whatsapp-web.js.git"
16
16
  },
17
17
  "keywords": [
18
18
  "whatsapp",
@@ -25,7 +25,7 @@
25
25
  "author": "Pedro Lopez",
26
26
  "license": "Apache-2.0",
27
27
  "bugs": {
28
- "url": "https://github.com/pedroslopez/whatsapp-web.js/issues"
28
+ "url": "https://github.com/wwebjs/whatsapp-web.js/issues"
29
29
  },
30
30
  "homepage": "https://wwebjs.dev/",
31
31
  "dependencies": {
package/src/Client.js CHANGED
@@ -1511,9 +1511,10 @@ class Client extends EventEmitter {
1511
1511
  const profilePic = await this.pupPage.evaluate(async contactId => {
1512
1512
  try {
1513
1513
  const chatWid = window.require('WAWebWidFactory').createWid(contactId);
1514
+ const chat = await window.WWebJS.getChat(contactId, { getAsModel: false });
1514
1515
  return window.WWebJS.compareWwebVersions(window.Debug.VERSION, '<', '2.3000.0')
1515
1516
  ? await window.require('WAWebContactProfilePicThumbBridge').profilePicFind(chatWid)
1516
- : await window.require('WAWebContactProfilePicThumbBridge').requestProfilePicFromServer(chatWid);
1517
+ : await window.require('WAWebContactProfilePicThumbBridge').requestProfilePicFromServer(chat);
1517
1518
  } catch (err) {
1518
1519
  if(err.name === 'ServerStatusCodeError') return undefined;
1519
1520
  throw err;