diff --git a/docs/Base.html b/docs/Base.html
index 8ffffec..1197c72 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Base
+ whatsapp-web.js 1.2.1-post » Class: Base
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html
index 809363a..6e0a092 100644
--- a/docs/BusinessContact.html
+++ b/docs/BusinessContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: BusinessContact
+ whatsapp-web.js 1.2.1-post » Class: BusinessContact
@@ -15,7 +15,7 @@
@@ -227,7 +227,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 429358c..7365dfb 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Chat
+ whatsapp-web.js 1.2.1-post » Class: Chat
@@ -15,7 +15,7 @@
@@ -350,7 +350,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index 1eb394f..eb81ab0 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Client
+ whatsapp-web.js 1.2.1-post » Class: Client
@@ -15,7 +15,7 @@
@@ -957,7 +957,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html
index e203fd9..c162a2c 100644
--- a/docs/Client.js.html
+++ b/docs/Client.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: Client.js
+ whatsapp-web.js 1.2.1-post » Source: Client.js
@@ -15,7 +15,7 @@
@@ -308,7 +308,7 @@ class Client extends EventEmitter {
});
await page.evaluate(() => {
- window.Store.Msg.on('add', window.onAddMessageEvent);
+ window.Store.Msg.on('add', (msg) => { if(msg.isNewMsg) window.onAddMessageEvent(msg);});
window.Store.Msg.on('change', window.onChangeMessageEvent);
window.Store.Msg.on('change:type', window.onChangeMessageTypeEvent);
window.Store.Msg.on('change:ack', window.onMessageAckEvent);
@@ -533,7 +533,7 @@ module.exports = Client;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html
index 98a08fc..48c559f 100644
--- a/docs/ClientInfo.html
+++ b/docs/ClientInfo.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: ClientInfo
+ whatsapp-web.js 1.2.1-post » Class: ClientInfo
@@ -15,7 +15,7 @@
@@ -187,7 +187,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html
index c8af08c..34c3f11 100644
--- a/docs/Contact.html
+++ b/docs/Contact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Contact
+ whatsapp-web.js 1.2.1-post » Class: Contact
@@ -15,7 +15,7 @@
@@ -196,7 +196,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html
index 9bd3428..f5eaeac 100644
--- a/docs/GroupChat.html
+++ b/docs/GroupChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: GroupChat
+ whatsapp-web.js 1.2.1-post » Class: GroupChat
@@ -15,7 +15,7 @@
@@ -726,7 +726,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index 27b5fb5..c1e1280 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: GroupNotification
+ whatsapp-web.js 1.2.1-post » Class: GroupNotification
@@ -15,7 +15,7 @@
@@ -233,7 +233,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index 95b43a6..af72599 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Location
+ whatsapp-web.js 1.2.1-post » Class: Location
@@ -15,7 +15,7 @@
@@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index 23f9e40..459cc6c 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Message
+ whatsapp-web.js 1.2.1-post » Class: Message
@@ -15,7 +15,7 @@
@@ -371,7 +371,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index 6098350..eaec29e 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: MessageMedia
+ whatsapp-web.js 1.2.1-post » Class: MessageMedia
@@ -15,7 +15,7 @@
@@ -152,7 +152,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index 430583a..89d7b85 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: PrivateChat
+ whatsapp-web.js 1.2.1-post » Class: PrivateChat
@@ -15,7 +15,7 @@
@@ -378,7 +378,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index 86310cb..90ef6ab 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: PrivateContact
+ whatsapp-web.js 1.2.1-post » Class: PrivateContact
@@ -15,7 +15,7 @@
@@ -220,7 +220,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index 99d50af..c0bdd39 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Class: Util
+ whatsapp-web.js 1.2.1-post » Class: Util
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/global.html b/docs/global.html
index a239354..a377553 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Globals
+ whatsapp-web.js 1.2.1-post » Globals
@@ -15,7 +15,7 @@
@@ -991,7 +991,7 @@
diff --git a/docs/index.html b/docs/index.html
index f591b74..499f671 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Home
+ whatsapp-web.js 1.2.1-post » 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 7e85d3d..aaf5ffd 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/Base.js
+ whatsapp-web.js 1.2.1-post » 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 7036df8..e6d10c7 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.2.1-post » 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 332b905..bf1ac59 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/Chat.js
+ whatsapp-web.js 1.2.1-post » 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 31b6bb9..18bf267 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.2.1-post » 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 d23eb51..e1473ac 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/Contact.js
+ whatsapp-web.js 1.2.1-post » 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 a5c3107..6968400 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.2.1-post » 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 7845a65..033227d 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.2.1-post » 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 f4ce25e..77032dd 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/Location.js
+ whatsapp-web.js 1.2.1-post » 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 4362f42..3869c61 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/Message.js
+ whatsapp-web.js 1.2.1-post » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -262,7 +262,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index bb184ed..e3f1976 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.2.1-post » 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 488cf70..3d31b2c 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.2.1-post » 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 dee943f..a8aae10 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.2.1-post » 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 e4bc106..6cb75f4 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: util/Constants.js
+ whatsapp-web.js 1.2.1-post » 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 22788f8..333e5c7 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1 » Source: util/Util.js
+ whatsapp-web.js 1.2.1-post » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -73,7 +73,7 @@ module.exports = Util;
diff --git a/package.json b/package.json
index b2825b2..8bbe741 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.2.1-post",
+ "version": "1.2.2",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"scripts": {