whatsapp-web.js 1.26.1-alpha.2 → 1.26.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -451,11 +451,12 @@ exports.LoadUtils = () => {
|
|
|
451
451
|
window.WWebJS.getChatModel = async chat => {
|
|
452
452
|
|
|
453
453
|
let res = chat.serialize();
|
|
454
|
-
res.isGroup =
|
|
454
|
+
res.isGroup = false;
|
|
455
455
|
res.formattedTitle = chat.formattedTitle;
|
|
456
|
-
res.isMuted = chat.
|
|
456
|
+
res.isMuted = chat.muteExpiration == 0 ? false : true;
|
|
457
457
|
|
|
458
458
|
if (chat.groupMetadata) {
|
|
459
|
+
res.isGroup = true;
|
|
459
460
|
const chatWid = window.Store.WidFactory.createWid((chat.id._serialized));
|
|
460
461
|
await window.Store.GroupMetadata.update(chatWid);
|
|
461
462
|
res.groupMetadata = chat.groupMetadata.serialize();
|