diff --git a/docs/Base.html b/docs/Base.html
index 1197c72..b3c6f4b 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Base
+ whatsapp-web.js 1.2.3 » Class: Base
@@ -15,7 +15,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html
index 6e0a092..b770578 100644
--- a/docs/BusinessContact.html
+++ b/docs/BusinessContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: BusinessContact
+ whatsapp-web.js 1.2.3 » Class: BusinessContact
@@ -15,7 +15,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 7365dfb..9f42d9d 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Chat
+ whatsapp-web.js 1.2.3 » Class: Chat
@@ -15,7 +15,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index eb81ab0..1fbf6ab 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Client
+ whatsapp-web.js 1.2.3 » Class: Client
@@ -15,7 +15,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html
index c162a2c..ff49159 100644
--- a/docs/Client.js.html
+++ b/docs/Client.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: Client.js
+ whatsapp-web.js 1.2.3 » Source: Client.js
@@ -15,7 +15,7 @@
@@ -286,7 +286,7 @@ class Client extends EventEmitter {
});
- await page.exposeFunction('onAppStateChangedEvent', (_AppState, state) => {
+ await page.exposeFunction('onAppStateChangedEvent', (state) => {
/**
* Emitted when the connection state changes
@@ -308,12 +308,12 @@ class Client extends EventEmitter {
});
await page.evaluate(() => {
- 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);
- window.Store.Msg.on('remove', window.onRemoveMessageEvent);
- window.Store.AppState.on('change:state', window.onAppStateChangedEvent);
+ window.Store.Msg.on('add', (msg) => { if(msg.isNewMsg) window.onAddMessageEvent(msg); });
+ window.Store.Msg.on('change', (msg) => { window.onChangeMessageEvent(msg); });
+ window.Store.Msg.on('change:type', (msg) => { window.onChangeMessageTypeEvent(msg); });
+ window.Store.Msg.on('change:ack', (msg, ack) => { window.onMessageAckEvent(msg, ack); });
+ window.Store.Msg.on('remove', (msg) => { if(msg.isNewMsg) window.onRemoveMessageEvent(msg); });
+ window.Store.AppState.on('change:state', (_AppState, state) => { window.onAppStateChangedEvent(state); });
});
this.pupBrowser = browser;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html
index 48c559f..80cc4db 100644
--- a/docs/ClientInfo.html
+++ b/docs/ClientInfo.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: ClientInfo
+ whatsapp-web.js 1.2.3 » Class: ClientInfo
@@ -15,7 +15,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html
index 34c3f11..d931f20 100644
--- a/docs/Contact.html
+++ b/docs/Contact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Contact
+ whatsapp-web.js 1.2.3 » Class: Contact
@@ -15,7 +15,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html
index f5eaeac..5a24a6c 100644
--- a/docs/GroupChat.html
+++ b/docs/GroupChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: GroupChat
+ whatsapp-web.js 1.2.3 » Class: GroupChat
@@ -15,7 +15,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index c1e1280..629ba0b 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: GroupNotification
+ whatsapp-web.js 1.2.3 » Class: GroupNotification
@@ -15,7 +15,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index af72599..f4d1835 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Location
+ whatsapp-web.js 1.2.3 » Class: Location
@@ -15,7 +15,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index 459cc6c..1e71366 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Message
+ whatsapp-web.js 1.2.3 » Class: Message
@@ -15,7 +15,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index eaec29e..876bf41 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: MessageMedia
+ whatsapp-web.js 1.2.3 » Class: MessageMedia
@@ -15,7 +15,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index 89d7b85..575f0fd 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: PrivateChat
+ whatsapp-web.js 1.2.3 » Class: PrivateChat
@@ -15,7 +15,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index 90ef6ab..6c4e6b2 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: PrivateContact
+ whatsapp-web.js 1.2.3 » Class: PrivateContact
@@ -15,7 +15,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index c0bdd39..bec6248 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Class: Util
+ whatsapp-web.js 1.2.3 » Class: Util
@@ -15,7 +15,7 @@
diff --git a/docs/global.html b/docs/global.html
index a377553..7f3e100 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Globals
+ whatsapp-web.js 1.2.3 » Globals
@@ -15,7 +15,7 @@
diff --git a/docs/index.html b/docs/index.html
index 499f671..dcdeab0 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Home
+ whatsapp-web.js 1.2.3 » Home
@@ -15,7 +15,7 @@
@@ -27,7 +27,7 @@
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index aaf5ffd..5c2db43 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/Base.js
+ whatsapp-web.js 1.2.3 » Source: structures/Base.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index e6d10c7..44b6d3d 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.2.3 » Source: structures/BusinessContact.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index bf1ac59..a13a9db 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/Chat.js
+ whatsapp-web.js 1.2.3 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 18bf267..93d6e7b 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.2.3 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index e1473ac..bbcc15f 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/Contact.js
+ whatsapp-web.js 1.2.3 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index 6968400..d1b97e9 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/GroupChat.js
+ whatsapp-web.js 1.2.3 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index 033227d..8cb1cb7 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.2.3 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index 77032dd..b639998 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/Location.js
+ whatsapp-web.js 1.2.3 » Source: structures/Location.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 3869c61..896ec66 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/Message.js
+ whatsapp-web.js 1.2.3 » Source: structures/Message.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index e3f1976..68c3608 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.2.3 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index 3d31b2c..0c21230 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.2.3 » Source: structures/PrivateChat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_PrivateContact.js.html b/docs/structures_PrivateContact.js.html
index a8aae10..58ea87c 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.2.3 » Source: structures/PrivateContact.js
@@ -15,7 +15,7 @@
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index 6cb75f4..26d896c 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: util/Constants.js
+ whatsapp-web.js 1.2.3 » Source: util/Constants.js
@@ -15,7 +15,7 @@
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 333e5c7..74ace97 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.2.1-post » Source: util/Util.js
+ whatsapp-web.js 1.2.3 » Source: util/Util.js
@@ -15,7 +15,7 @@
diff --git a/package.json b/package.json
index c858807..6f589a0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.2.2-post",
+ "version": "1.2.3",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"scripts": {