whatsapp-web.js 1.19.3 → 1.19.5

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2301.6](https://img.shields.io/badge/WhatsApp_Web-2.2301.6-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4)
1
+ [![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2306.7](https://img.shields.io/badge/WhatsApp_Web-2.2306.7-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4)
2
2
 
3
3
  # whatsapp-web.js
4
4
  A WhatsApp API client that connects through the WhatsApp Web browser app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.19.3",
3
+ "version": "1.19.5",
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
@@ -937,7 +937,7 @@ class Client extends EventEmitter {
937
937
  unmuteDate = unmuteDate ? unmuteDate.getTime() / 1000 : -1;
938
938
  await this.pupPage.evaluate(async (chatId, timestamp) => {
939
939
  let chat = await window.Store.Chat.get(chatId);
940
- await chat.mute.mute(timestamp, !0);
940
+ await chat.mute.mute({expiration: timestamp, sendDevice:!0});
941
941
  }, chatId, unmuteDate || -1);
942
942
  }
943
943
 
@@ -403,7 +403,7 @@ class Message extends Base {
403
403
  }
404
404
 
405
405
  try {
406
- const decryptedMedia = await window.Store.DownloadManager.downloadAndDecrypt({
406
+ const decryptedMedia = await window.Store.DownloadManager.downloadAndMaybeDecrypt({
407
407
  directPath: msg.directPath,
408
408
  encFilehash: msg.encFilehash,
409
409
  filehash: msg.filehash,
@@ -17,7 +17,7 @@ exports.ExposeStore = (moduleRaidStr) => {
17
17
  window.Store.Invite = window.mR.findModule('resetGroupInviteCode')[0];
18
18
  window.Store.InviteInfo = window.mR.findModule('queryGroupInvite')[0];
19
19
  window.Store.Label = window.mR.findModule('LabelCollection')[0].LabelCollection;
20
- window.Store.MediaPrep = window.mR.findModule('MediaPrep')[0];
20
+ window.Store.MediaPrep = window.mR.findModule('prepRawMedia')[0];
21
21
  window.Store.MediaObject = window.mR.findModule('getOrCreateMediaObject')[0];
22
22
  window.Store.NumberInfo = window.mR.findModule('formattedPhoneNumber')[0];
23
23
  window.Store.MediaTypes = window.mR.findModule('msgToMediaType')[0];
@@ -25,7 +25,7 @@ exports.ExposeStore = (moduleRaidStr) => {
25
25
  window.Store.MsgKey = window.mR.findModule((module) => module.default && module.default.fromString)[0].default;
26
26
  window.Store.MessageInfo = window.mR.findModule('sendQueryMsgInfo')[0];
27
27
  window.Store.OpaqueData = window.mR.findModule(module => module.default && module.default.createFromData)[0].default;
28
- window.Store.QueryExist = window.mR.findModule('queryExists')[0].queryExists;
28
+ window.Store.QueryExist = window.mR.findModule('queryExists')[0] ? window.mR.findModule('queryExists')[0].queryExists : window.mR.findModule('queryExist')[0].queryWidExists;
29
29
  window.Store.QueryProduct = window.mR.findModule('queryProduct')[0];
30
30
  window.Store.QueryOrder = window.mR.findModule('queryOrder')[0];
31
31
  window.Store.SendClear = window.mR.findModule('sendClear')[0];