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 +1 -1
- package/package.json +1 -1
- package/src/Client.js +1 -1
- package/src/structures/Message.js +1 -1
- package/src/util/Injected.js +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://www.npmjs.com/package/whatsapp-web.js) [](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ](https://www.npmjs.com/package/whatsapp-web.js) [](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765)  [](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
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,
|
|
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.
|
|
406
|
+
const decryptedMedia = await window.Store.DownloadManager.downloadAndMaybeDecrypt({
|
|
407
407
|
directPath: msg.directPath,
|
|
408
408
|
encFilehash: msg.encFilehash,
|
|
409
409
|
filehash: msg.filehash,
|
package/src/util/Injected.js
CHANGED
|
@@ -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('
|
|
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];
|