diff --git a/docs/Base.html b/docs/Base.html
index 342507e..8eec2a6 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
@@ -3995,7 +3995,7 @@ limitations under the License.
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index bfd71b7..37f2d48 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Base.js
+
whatsapp-web.js 1.28.0 » Source: structures/Base.js
@@ -15,7 +15,7 @@
@@ -60,7 +60,7 @@ module.exports = Base;
diff --git a/docs/structures_Broadcast.js.html b/docs/structures_Broadcast.js.html
index 00ee038..c33a2e1 100644
--- a/docs/structures_Broadcast.js.html
+++ b/docs/structures_Broadcast.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Broadcast.js
+
whatsapp-web.js 1.28.0 » Source: structures/Broadcast.js
@@ -15,7 +15,7 @@
@@ -108,7 +108,7 @@ module.exports = Broadcast;
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index d2229e6..b93d117 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/BusinessContact.js
+
whatsapp-web.js 1.28.0 » Source: structures/BusinessContact.js
@@ -15,7 +15,7 @@
@@ -59,7 +59,7 @@ module.exports = BusinessContact;
diff --git a/docs/structures_Buttons.js.html b/docs/structures_Buttons.js.html
index 307a3cf..8dd24e5 100644
--- a/docs/structures_Buttons.js.html
+++ b/docs/structures_Buttons.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Buttons.js
+
whatsapp-web.js 1.28.0 » Source: structures/Buttons.js
@@ -15,7 +15,7 @@
@@ -120,7 +120,7 @@ module.exports = Buttons;
diff --git a/docs/structures_Call.js.html b/docs/structures_Call.js.html
index e0ef5bf..9bc9980 100644
--- a/docs/structures_Call.js.html
+++ b/docs/structures_Call.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Call.js
+
whatsapp-web.js 1.28.0 » Source: structures/Call.js
@@ -15,7 +15,7 @@
@@ -114,7 +114,7 @@ module.exports = Call;
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index 4039936..558e295 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Chat.js
+
whatsapp-web.js 1.28.0 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -322,7 +322,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 5e61332..45a5111 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/ClientInfo.js
+
whatsapp-web.js 1.28.0 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
@@ -109,7 +109,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index d7ef2a8..7b9a893 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Contact.js
+
whatsapp-web.js 1.28.0 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -247,7 +247,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index eced099..bd3b9d8 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/GroupChat.js
+
whatsapp-web.js 1.28.0 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -129,7 +129,7 @@ class GroupChat extends Chat {
419: 'The participant can\'t be added because the group is full'
};
- await window.Store.GroupQueryAndUpdate(groupWid);
+ await window.Store.GroupQueryAndUpdate({ id: groupId });
const groupMetadata = group.groupMetadata;
const groupParticipants = groupMetadata?.participants;
@@ -516,7 +516,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index f9134f0..7e3dd5b 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/GroupNotification.js
+
whatsapp-web.js 1.28.0 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
@@ -143,7 +143,7 @@ module.exports = GroupNotification;
diff --git a/docs/structures_Label.js.html b/docs/structures_Label.js.html
index 01a79a5..41b9989 100644
--- a/docs/structures_Label.js.html
+++ b/docs/structures_Label.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Label.js
+
whatsapp-web.js 1.28.0 » Source: structures/Label.js
@@ -15,7 +15,7 @@
@@ -88,7 +88,7 @@ module.exports = Label;
diff --git a/docs/structures_List.js.html b/docs/structures_List.js.html
index a9b4969..6bd1d9e 100644
--- a/docs/structures_List.js.html
+++ b/docs/structures_List.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/List.js
+
whatsapp-web.js 1.28.0 » Source: structures/List.js
@@ -15,7 +15,7 @@
@@ -118,7 +118,7 @@ module.exports = List;
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index 132c217..37bbde9 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Location.js
+
whatsapp-web.js 1.28.0 » Source: structures/Location.js
@@ -15,7 +15,7 @@
@@ -99,7 +99,7 @@ module.exports = Location;
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 55ce512..1b67631 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Message.js
+
whatsapp-web.js 1.28.0 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -750,7 +750,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index 8662d8c..3766bbf 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/MessageMedia.js
+
whatsapp-web.js 1.28.0 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
@@ -150,7 +150,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_Order.js.html b/docs/structures_Order.js.html
index cac3c23..3b51687 100644
--- a/docs/structures_Order.js.html
+++ b/docs/structures_Order.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Order.js
+
whatsapp-web.js 1.28.0 » Source: structures/Order.js
@@ -15,7 +15,7 @@
@@ -90,7 +90,7 @@ module.exports = Order;
diff --git a/docs/structures_Payment.js.html b/docs/structures_Payment.js.html
index 73ddf3c..1c0b599 100644
--- a/docs/structures_Payment.js.html
+++ b/docs/structures_Payment.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Payment.js
+
whatsapp-web.js 1.28.0 » Source: structures/Payment.js
@@ -15,7 +15,7 @@
@@ -118,7 +118,7 @@ module.exports = Payment;
diff --git a/docs/structures_Poll.js.html b/docs/structures_Poll.js.html
index 24a0ccf..230fc14 100644
--- a/docs/structures_Poll.js.html
+++ b/docs/structures_Poll.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Poll.js
+
whatsapp-web.js 1.28.0 » Source: structures/Poll.js
@@ -15,7 +15,7 @@
@@ -83,7 +83,7 @@ module.exports = Poll;
diff --git a/docs/structures_PollVote.js.html b/docs/structures_PollVote.js.html
index 80b074d..528089b 100644
--- a/docs/structures_PollVote.js.html
+++ b/docs/structures_PollVote.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/PollVote.js
+
whatsapp-web.js 1.28.0 » Source: structures/PollVote.js
@@ -15,7 +15,7 @@
@@ -100,7 +100,7 @@ module.exports = PollVote;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index eba3683..0fed682 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/PrivateChat.js
+
whatsapp-web.js 1.28.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 815980d..1c4ad19 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/PrivateContact.js
+
whatsapp-web.js 1.28.0 » Source: structures/PrivateContact.js
@@ -15,7 +15,7 @@
@@ -51,7 +51,7 @@ module.exports = PrivateContact;
diff --git a/docs/structures_Product.js.html b/docs/structures_Product.js.html
index b947efa..1a05766 100644
--- a/docs/structures_Product.js.html
+++ b/docs/structures_Product.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Product.js
+
whatsapp-web.js 1.28.0 » Source: structures/Product.js
@@ -15,7 +15,7 @@
@@ -106,7 +106,7 @@ module.exports = Product;
diff --git a/docs/structures_ProductMetadata.js.html b/docs/structures_ProductMetadata.js.html
index 7003d3b..0412db6 100644
--- a/docs/structures_ProductMetadata.js.html
+++ b/docs/structures_ProductMetadata.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/ProductMetadata.js
+
whatsapp-web.js 1.28.0 » Source: structures/ProductMetadata.js
@@ -15,7 +15,7 @@
@@ -63,7 +63,7 @@ module.exports = ProductMetadata;
diff --git a/docs/structures_Reaction.js.html b/docs/structures_Reaction.js.html
index b4491fb..bf9a84e 100644
--- a/docs/structures_Reaction.js.html
+++ b/docs/structures_Reaction.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: structures/Reaction.js
+
whatsapp-web.js 1.28.0 » Source: structures/Reaction.js
@@ -15,7 +15,7 @@
@@ -107,7 +107,7 @@ module.exports = Reaction;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index b0c85e2..d1875d5 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Constants.js
+
whatsapp-web.js 1.28.0 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -215,7 +215,7 @@ exports.MessageAck = {
diff --git a/docs/util_Injected_LegacyStore.js.html b/docs/util_Injected_LegacyStore.js.html
index 188fa7b..8642c45 100644
--- a/docs/util_Injected_LegacyStore.js.html
+++ b/docs/util_Injected_LegacyStore.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Injected/LegacyStore.js
+
whatsapp-web.js 1.28.0 » Source: util/Injected/LegacyStore.js
@@ -15,7 +15,7 @@
@@ -184,7 +184,7 @@ exports.ExposeLegacyStore = () => {
diff --git a/docs/util_Injected_Store.js.html b/docs/util_Injected_Store.js.html
index f6fd353..a9f6c50 100644
--- a/docs/util_Injected_Store.js.html
+++ b/docs/util_Injected_Store.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Injected/Store.js
+
whatsapp-web.js 1.28.0 » Source: util/Injected/Store.js
@@ -15,7 +15,7 @@
@@ -86,7 +86,6 @@ exports.ExposeStore = () => {
window.Store.MediaTypes = window.require('WAWebMmsMediaTypes');
window.Store.MediaUpload = window.require('WAWebMediaMmsV4Upload');
window.Store.MsgKey = window.require('WAWebMsgKey');
- window.Store.NumberInfo = window.require('WAPhoneUtils');
window.Store.OpaqueData = window.require('WAWebMediaOpaqueData');
window.Store.QueryProduct = window.require('WAWebBizProductCatalogBridge');
window.Store.QueryOrder = window.require('WAWebBizOrderBridge');
@@ -133,6 +132,11 @@ exports.ExposeStore = () => {
if (window.compareWwebVersions(window.Debug.VERSION, '>=', '2.3000.1014111620'))
window.Store.AddonReactionTable = window.require('WAWebAddonReactionTableMode').reactionTableMode;
+ window.Store.NumberInfo = {
+ ...window.require('WAPhoneUtils'),
+ ...window.require('WAPhoneFindCC')
+ };
+
window.Store.ForwardUtils = {
...window.require('WAWebForwardMessagesToChat')
};
@@ -208,7 +212,7 @@ exports.ExposeStore = () => {
diff --git a/docs/util_Injected_Utils.js.html b/docs/util_Injected_Utils.js.html
index 9599ab6..f6175f0 100644
--- a/docs/util_Injected_Utils.js.html
+++ b/docs/util_Injected_Utils.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Injected/Utils.js
+
whatsapp-web.js 1.28.0 » Source: util/Injected/Utils.js
@@ -15,7 +15,7 @@
@@ -77,20 +77,24 @@ exports.LoadUtils = () => {
if (options.quotedMessageId) {
let quotedMessage = await window.Store.Msg.getMessagesById([options.quotedMessageId]);
- if (quotedMessage['messages'].length != 1) {
- throw new Error('Could not get the quoted message.');
- }
+ if (quotedMessage['messages'].length == 1) {
+ quotedMessage = quotedMessage['messages'][0];
- quotedMessage = quotedMessage['messages'][0];
+ // TODO remove .canReply() once all clients are updated to >= v2.2241.6
+ const canReply = window.Store.ReplyUtils ?
+ window.Store.ReplyUtils.canReplyMsg(quotedMessage.unsafe()) :
+ quotedMessage.canReply();
- // TODO remove .canReply() once all clients are updated to >= v2.2241.6
- const canReply = window.Store.ReplyUtils ?
- window.Store.ReplyUtils.canReplyMsg(quotedMessage.unsafe()) :
- quotedMessage.canReply();
-
- if (canReply) {
- quotedMsgOptions = quotedMessage.msgContextInfo(chat);
+ if (canReply) {
+ quotedMsgOptions = quotedMessage.msgContextInfo(chat);
+ }
+ }else{
+ if(!options.ignoreQuoteErrors) {
+ throw new Error('Could not get the quoted message.');
+ }
}
+
+ delete options.ignoreQuoteErrors;
delete options.quotedMessageId;
}
@@ -952,7 +956,7 @@ exports.LoadUtils = () => {
let response;
let result = [];
- await window.Store.GroupQueryAndUpdate(groupWid);
+ await window.Store.GroupQueryAndUpdate({ id: groupId });
if (!requesterIds?.length) {
membershipRequests = group.groupMetadata.membershipApprovalRequests._models.map(({ id }) => id);
@@ -1068,7 +1072,7 @@ exports.LoadUtils = () => {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index c552e7e..94c2c1e 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/InterfaceController.js
+
whatsapp-web.js 1.28.0 » Source: util/InterfaceController.js
@@ -15,7 +15,7 @@
@@ -166,7 +166,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Puppeteer.js.html b/docs/util_Puppeteer.js.html
index 52e4615..00c7511 100644
--- a/docs/util_Puppeteer.js.html
+++ b/docs/util_Puppeteer.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Puppeteer.js
+
whatsapp-web.js 1.28.0 » Source: util/Puppeteer.js
@@ -15,7 +15,7 @@
@@ -62,7 +62,7 @@ module.exports = {exposeFunctionIfAbsent};
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 9ee02b4..8d16d2b 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: util/Util.js
+
whatsapp-web.js 1.28.0 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -225,7 +225,7 @@ module.exports = Util;
diff --git a/docs/webCache_LocalWebCache.js.html b/docs/webCache_LocalWebCache.js.html
index e8cb809..cd84960 100644
--- a/docs/webCache_LocalWebCache.js.html
+++ b/docs/webCache_LocalWebCache.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: webCache/LocalWebCache.js
+
whatsapp-web.js 1.28.0 » Source: webCache/LocalWebCache.js
@@ -15,7 +15,7 @@
@@ -79,7 +79,7 @@ module.exports = LocalWebCache;
diff --git a/docs/webCache_RemoteWebCache.js.html b/docs/webCache_RemoteWebCache.js.html
index 36a2007..dd79b85 100644
--- a/docs/webCache_RemoteWebCache.js.html
+++ b/docs/webCache_RemoteWebCache.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: webCache/RemoteWebCache.js
+
whatsapp-web.js 1.28.0 » Source: webCache/RemoteWebCache.js
@@ -15,7 +15,7 @@
@@ -78,7 +78,7 @@ module.exports = RemoteWebCache;
diff --git a/docs/webCache_WebCache.js.html b/docs/webCache_WebCache.js.html
index d24ee36..97fc384 100644
--- a/docs/webCache_WebCache.js.html
+++ b/docs/webCache_WebCache.js.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.27.0 » Source: webCache/WebCache.js
+
whatsapp-web.js 1.28.0 » Source: webCache/WebCache.js
@@ -15,7 +15,7 @@
@@ -52,7 +52,7 @@ module.exports = {