chore(): generate docs
This commit is contained in:
parent
5ad6a03b2c
commit
f41d1e2174
73 changed files with 684 additions and 291 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta name="generator" content="JSDoc 3.6.11">
|
||||
<meta charset="utf-8">
|
||||
<title>whatsapp-web.js 1.28.0 » Source: util/Injected/Utils.js</title>
|
||||
<title>whatsapp-web.js 1.28.1-alpha.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>28.<wbr>0</a>
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>28.<wbr>1-alpha.<wbr>0</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -39,7 +39,7 @@ exports.LoadUtils = () => {
|
|||
let chat = window.Store.Chat.get(chatId);
|
||||
|
||||
if (window.compareWwebVersions(window.Debug.VERSION, '>', '2.3000.0')) {
|
||||
return window.Store.ForwardUtils.forwardMessagesToChats([msg], [chat], false);
|
||||
return window.Store.ForwardUtils.forwardMessagesToChats([msg], [chat], true);
|
||||
} else {
|
||||
return chat.forwardMessages([msg]);
|
||||
}
|
||||
|
|
@ -245,8 +245,12 @@ exports.LoadUtils = () => {
|
|||
delete options.invokedBotWid;
|
||||
}
|
||||
|
||||
const meUser = window.Store.User.getMaybeMeUser();
|
||||
let meUser = window.Store.User.getMaybeMeUser();
|
||||
const newId = await window.Store.MsgKey.newId();
|
||||
|
||||
if (chat.id.isGroup() &amp;&amp; chat.groupMetadata.isLidAddressingMode) {
|
||||
meUser = window.Store.User.getMaybeMeLidUser();
|
||||
}
|
||||
|
||||
const newMsgId = new window.Store.MsgKey({
|
||||
from: meUser,
|
||||
|
|
@ -488,13 +492,14 @@ exports.LoadUtils = () => {
|
|||
let res = chat.serialize();
|
||||
res.isGroup = false;
|
||||
res.formattedTitle = chat.formattedTitle;
|
||||
res.isMuted = chat.muteExpiration == 0 ? false : true;
|
||||
res.isMuted = chat.mute?.expiration !== 0;
|
||||
|
||||
if (chat.groupMetadata) {
|
||||
res.isGroup = true;
|
||||
const chatWid = window.Store.WidFactory.createWid((chat.id._serialized));
|
||||
await window.Store.GroupMetadata.update(chatWid);
|
||||
res.groupMetadata = chat.groupMetadata.serialize();
|
||||
res.isReadOnly = chat.groupMetadata.announce;
|
||||
}
|
||||
|
||||
res.lastMessage = null;
|
||||
|
|
@ -1051,9 +1056,8 @@ exports.LoadUtils = () => {
|
|||
};
|
||||
|
||||
window.WWebJS.getStatusModel = status => {
|
||||
let res = status.serialize();
|
||||
const res = status.serialize();
|
||||
delete res._msgs;
|
||||
res.msgs = status._msgs.map(msg => window.WWebJS.getMessageModel(msg));
|
||||
return res;
|
||||
};
|
||||
|
||||
|
|
@ -1072,7 +1076,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 May 12, 2025.
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on May 30, 2025.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue