chore(): generate docs
This commit is contained in:
parent
f6f4790a48
commit
c018e2dcbe
73 changed files with 242 additions and 234 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta name="generator" content="JSDoc 3.6.11">
|
||||
<meta charset="utf-8">
|
||||
<title>whatsapp-web.js 1.27.0 » Source: util/Injected/Utils.js</title>
|
||||
<title>whatsapp-web.js 1.28.0 » Source: util/Injected/Utils.js</title>
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||
<div id="jsdoc-navbar-container">
|
||||
<div id="jsdoc-navbar-content">
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>27.<wbr>0</a>
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>28.<wbr>0</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -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 = () => {
|
|||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||
<div id="jsdoc-footer-container">
|
||||
<p>
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on March 27, 2025.
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 12, 2025.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue