diff --git a/docs/Base.html b/docs/Base.html
index cab9bb0..22a7b90 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- - isGroup
+ - isMuted
-
- isReadOnly
-
+ - muteExpiration
+ -
+
- name
-
@@ -209,6 +215,13 @@
- Inherited from
- Chat#isGroup
+
isMuted
+ unknown
+
Indicates if the chat is muted or not
+
+ - Inherited from
+ - Chat#isMuted
+
isReadOnly
unknown
Indicates if the Chat is readonly
@@ -216,6 +229,13 @@
Inherited from
Chat#isReadOnly
+
muteExpiration
+ unknown
+
Unix timestamp for when the mute expires
+
+ - Inherited from
+ - Chat#muteExpiration
+
name
unknown
Title of the chat
@@ -710,7 +730,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index 06d0c8d..dac82cd 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: GroupNotification
+
whatsapp-web.js 1.9.0 » Class: GroupNotification
@@ -15,7 +15,7 @@
@@ -233,7 +233,7 @@
diff --git a/docs/InterfaceController.html b/docs/InterfaceController.html
index 39bdd3f..8727a77 100644
--- a/docs/InterfaceController.html
+++ b/docs/InterfaceController.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: InterfaceController
+
whatsapp-web.js 1.9.0 » Class: InterfaceController
@@ -15,7 +15,7 @@
@@ -187,7 +187,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index e05c5fc..1ba9a8b 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: Location
+
whatsapp-web.js 1.9.0 » Class: Location
@@ -15,7 +15,7 @@
@@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index af4a44f..8f54e75 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: Message
+
whatsapp-web.js 1.9.0 » Class: Message
@@ -15,7 +15,7 @@
@@ -427,7 +427,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index 2927f6d..9816ec8 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: MessageMedia
+
whatsapp-web.js 1.9.0 » Class: MessageMedia
@@ -15,7 +15,7 @@
@@ -208,7 +208,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index 468e36f..d15d2a1 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: PrivateChat
+
whatsapp-web.js 1.9.0 » Class: PrivateChat
@@ -15,7 +15,7 @@
@@ -52,19 +52,25 @@
+ - name
+ -
+
+ - timestamp
+ -
+
- unreadCount
-
@@ -160,6 +166,13 @@
- Inherited from
- Chat#isGroup
+
isMuted
+ unknown
+
Indicates if the chat is muted or not
+
+ - Inherited from
+ - Chat#isMuted
+
isReadOnly
unknown
Indicates if the Chat is readonly
@@ -167,6 +180,13 @@
Inherited from
Chat#isReadOnly
+
muteExpiration
+ unknown
+
Unix timestamp for when the mute expires
+
+ - Inherited from
+ - Chat#muteExpiration
+
name
unknown
Title of the chat
@@ -439,7 +459,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index a25ac3e..fde15d7 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: PrivateContact
+
whatsapp-web.js 1.9.0 » Class: PrivateContact
@@ -15,7 +15,7 @@
@@ -235,7 +235,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index 6bcb7b5..8c39e0b 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Class: Util
+
whatsapp-web.js 1.9.0 » Class: Util
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/global.html b/docs/global.html
index 0b24052..9b54746 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Globals
+
whatsapp-web.js 1.9.0 » Globals
@@ -15,7 +15,7 @@
@@ -1157,7 +1157,7 @@
diff --git a/docs/index.html b/docs/index.html
index e7b0ed1..bc07942 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.8.2 » Home
+
whatsapp-web.js 1.9.0 » Home
@@ -15,7 +15,7 @@
@@ -27,11 +27,11 @@
-
+
+
-
Chat#id
@@ -365,6 +365,11 @@ client.initialize();
-
+ -
+ Chat#isMuted
+
+ -
+
-
Chat#isReadOnly
@@ -375,6 +380,11 @@ client.initialize();
-
+ -
+ Chat#muteExpiration
+
+ -
+
-
Chat#name
@@ -1019,6 +1029,11 @@ client.initialize();
-
+ -
+ GroupChat#isMuted
+
+ -
+
-
GroupChat#isReadOnly
@@ -1034,6 +1049,11 @@ client.initialize();
-
+ -
+ GroupChat#muteExpiration
+
+ -
+
-
GroupChat#name
@@ -1054,6 +1074,10 @@ client.initialize();
-
+
+
+
-
-
+
+
-
PrivateChat#id
@@ -1725,6 +1745,11 @@ client.initialize();
-
+ -
+ PrivateChat#isMuted
+
+ -
+
-
PrivateChat#isReadOnly
@@ -1735,6 +1760,11 @@ client.initialize();
-
+ -
+ PrivateChat#muteExpiration
+
+ -
+
-
PrivateChat#name
@@ -2029,7 +2059,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 572a200..18acf4e 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/Base.js
+ whatsapp-web.js 1.9.0 » 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 1dac9f6..acd59d9 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.9.0 » 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 29d9aba..fd8b038 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/Chat.js
+ whatsapp-web.js 1.9.0 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -88,6 +88,18 @@ class Chat extends Base {
*/
this.archived = data.archive;
+ /**
+ * Indicates if the chat is muted or not
+ * @type {number}
+ */
+ this.isMuted = data.isMuted;
+
+ /**
+ * Unix timestamp for when the mute expires
+ * @type {number}
+ */
+ this.muteExpiration = data.muteExpiration;
+
return super._patch(data);
}
@@ -181,7 +193,7 @@ class Chat extends Base {
}
msgs.sort((a, b) => (a.t > b.t) ? 1 : -1);
- return msgs.splice(msgs.length - limit).map(m => m.serialize());
+ return msgs.splice(msgs.length - limit).map(m => window.WWebJS.getMessageModel(m));
}, this.id._serialized, searchOptions.limit);
@@ -238,7 +250,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 80a1285..024921d 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.9.0 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
@@ -102,7 +102,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index b28aae4..0b3bc9b 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/Contact.js
+ whatsapp-web.js 1.9.0 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -160,7 +160,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index beece1b..147769e 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.9.0 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -188,7 +188,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index ead98a7..f747720 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.9.0 » 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 e682b67..ae9ce0b 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/Location.js
+ whatsapp-web.js 1.9.0 » 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 408f8a4..2f8c228 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/Message.js
+ whatsapp-web.js 1.9.0 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -304,7 +304,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index c59f6f3..afffa90 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.9.0 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
@@ -86,7 +86,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index cced9b0..594ef8f 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.9.0 » 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 2857b23..95a0c90 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.9.0 » 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 d92967c..0984ada 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: util/Constants.js
+ whatsapp-web.js 1.9.0 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -173,7 +173,7 @@ exports.MessageAck = {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index bba4d4e..fd22f65 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: util/InterfaceController.js
+ whatsapp-web.js 1.9.0 » Source: util/InterfaceController.js
@@ -15,7 +15,7 @@
@@ -94,7 +94,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 15ad90e..75c4491 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.8.2 » Source: util/Util.js
+ whatsapp-web.js 1.9.0 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -73,7 +73,7 @@ module.exports = Util;
diff --git a/package.json b/package.json
index 81786f1..f1a2bbe 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.8.2-post",
+ "version": "1.9.0",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"typings": "./index.d.ts",