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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.26.1-alpha.2",
3
+ "version": "1.26.1-alpha.3",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -451,11 +451,12 @@ exports.LoadUtils = () => {
451
451
  window.WWebJS.getChatModel = async chat => {
452
452
 
453
453
  let res = chat.serialize();
454
- res.isGroup = chat.isGroup;
454
+ res.isGroup = false;
455
455
  res.formattedTitle = chat.formattedTitle;
456
- res.isMuted = chat.mute && chat.mute.isMuted;
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();