diff --git a/docs/Base.html b/docs/Base.html
index b3c6f4b..79b0904 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Base
+ whatsapp-web.js 1.2.4 » Class: Base
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html
index b770578..ba64b00 100644
--- a/docs/BusinessContact.html
+++ b/docs/BusinessContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: BusinessContact
+ whatsapp-web.js 1.2.4 » Class: BusinessContact
@@ -15,7 +15,7 @@
@@ -227,7 +227,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 9f42d9d..f2f9369 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Chat
+ whatsapp-web.js 1.2.4 » Class: Chat
@@ -15,7 +15,7 @@
@@ -350,7 +350,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index 1fbf6ab..7473c82 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Client
+ whatsapp-web.js 1.2.4 » Class: Client
@@ -15,7 +15,7 @@
@@ -957,7 +957,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html
index ff49159..c980915 100644
--- a/docs/Client.js.html
+++ b/docs/Client.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: Client.js
+ whatsapp-web.js 1.2.4 » Source: Client.js
@@ -15,7 +15,7 @@
@@ -533,7 +533,7 @@ module.exports = Client;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html
index 80cc4db..a39f235 100644
--- a/docs/ClientInfo.html
+++ b/docs/ClientInfo.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: ClientInfo
+ whatsapp-web.js 1.2.4 » Class: ClientInfo
@@ -15,7 +15,7 @@
@@ -187,7 +187,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html
index d931f20..262d75f 100644
--- a/docs/Contact.html
+++ b/docs/Contact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Contact
+ whatsapp-web.js 1.2.4 » Class: Contact
@@ -15,7 +15,7 @@
@@ -196,7 +196,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html
index 5a24a6c..79616b9 100644
--- a/docs/GroupChat.html
+++ b/docs/GroupChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: GroupChat
+ whatsapp-web.js 1.2.4 » Class: GroupChat
@@ -15,7 +15,7 @@
@@ -726,7 +726,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index 629ba0b..a1ba100 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: GroupNotification
+ whatsapp-web.js 1.2.4 » Class: GroupNotification
@@ -15,7 +15,7 @@
@@ -233,7 +233,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index f4d1835..2ce418e 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Location
+ whatsapp-web.js 1.2.4 » Class: Location
@@ -15,7 +15,7 @@
@@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index 1e71366..36f584c 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Message
+ whatsapp-web.js 1.2.4 » Class: Message
@@ -15,7 +15,7 @@
@@ -371,7 +371,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index 876bf41..efe4637 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: MessageMedia
+ whatsapp-web.js 1.2.4 » Class: MessageMedia
@@ -15,7 +15,7 @@
@@ -152,7 +152,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index 575f0fd..dfc2536 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: PrivateChat
+ whatsapp-web.js 1.2.4 » Class: PrivateChat
@@ -15,7 +15,7 @@
@@ -378,7 +378,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index 6c4e6b2..20660f4 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: PrivateContact
+ whatsapp-web.js 1.2.4 » Class: PrivateContact
@@ -15,7 +15,7 @@
@@ -220,7 +220,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index bec6248..81855b5 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Class: Util
+ whatsapp-web.js 1.2.4 » Class: Util
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/global.html b/docs/global.html
index 7f3e100..178bd36 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Globals
+ whatsapp-web.js 1.2.4 » Globals
@@ -15,7 +15,7 @@
@@ -991,7 +991,7 @@
diff --git a/docs/index.html b/docs/index.html
index dcdeab0..3b92d77 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Home
+ whatsapp-web.js 1.2.4 » Home
@@ -15,7 +15,7 @@
@@ -27,7 +27,7 @@
@@ -1815,7 +1815,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 5c2db43..36c00de 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/Base.js
+ whatsapp-web.js 1.2.4 » Source: structures/Base.js
@@ -15,7 +15,7 @@
@@ -60,7 +60,7 @@ module.exports = Base;
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index 44b6d3d..67967cf 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.2.4 » Source: structures/BusinessContact.js
@@ -15,7 +15,7 @@
@@ -59,7 +59,7 @@ module.exports = BusinessContact;
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index a13a9db..033c9c4 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/Chat.js
+ whatsapp-web.js 1.2.4 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -215,7 +215,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 93d6e7b..4f3d4f9 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.2.4 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
@@ -89,7 +89,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index bbcc15f..0578382 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/Contact.js
+ whatsapp-web.js 1.2.4 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -153,7 +153,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index d1b97e9..7d83ee1 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.2.4 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -209,7 +209,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index 8cb1cb7..d88c591 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.2.4 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
@@ -143,7 +143,7 @@ module.exports = GroupNotification;
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index b639998..2cf1bff 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/Location.js
+ whatsapp-web.js 1.2.4 » Source: structures/Location.js
@@ -15,7 +15,7 @@
@@ -71,7 +71,7 @@ module.exports = Location;
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 896ec66..a7197ff 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/Message.js
+ whatsapp-web.js 1.2.4 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -219,6 +219,11 @@ class Message extends Base {
const {data, mimetype, filename} = await this.client.pupPage.evaluate(async (msgId) => {
const msg = window.Store.Msg.get(msgId);
+
+ if(msg.mediaData.mediaStage != 'RESOLVED') {
+ await msg.downloadMedia(true, 1);
+ }
+
const buffer = await window.WWebJS.downloadBuffer(msg.clientUrl);
const decrypted = await window.Store.CryptoLib.decryptE2EMedia(msg.type, buffer, msg.mediaKey, msg.mimetype);
const data = await window.WWebJS.readBlobAsync(decrypted._blob);
@@ -262,7 +267,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index 68c3608..4f019f7 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.2.4 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
@@ -69,7 +69,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index 0c21230..121314d 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.2.4 » Source: structures/PrivateChat.js
@@ -15,7 +15,7 @@
@@ -51,7 +51,7 @@ module.exports = PrivateChat;
diff --git a/docs/structures_PrivateContact.js.html b/docs/structures_PrivateContact.js.html
index 58ea87c..8a25df2 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.2.4 » Source: structures/PrivateContact.js
@@ -15,7 +15,7 @@
@@ -51,7 +51,7 @@ module.exports = PrivateContact;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index 26d896c..d997a88 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: util/Constants.js
+ whatsapp-web.js 1.2.4 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -166,7 +166,7 @@ exports.MessageAck = {
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 74ace97..a858160 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.3 » Source: util/Util.js
+ whatsapp-web.js 1.2.4 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -73,7 +73,7 @@ module.exports = Util;
diff --git a/package-lock.json b/package-lock.json
index a1225e3..afb4ea9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.0.2-post",
+ "version": "1.2.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -42,9 +42,9 @@
"dev": true
},
"acorn": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz",
- "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==",
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz",
+ "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==",
"dev": true
},
"acorn-jsx": {
diff --git a/package.json b/package.json
index 995a8b4..26a1055 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.2.3-post",
+ "version": "1.2.4",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"scripts": {