diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index 6052627..f476441 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -451,11 +451,12 @@ exports.LoadUtils = () => { window.WWebJS.getChatModel = async chat => { let res = chat.serialize(); - res.isGroup = chat.isGroup; + res.isGroup = false; res.formattedTitle = chat.formattedTitle; - res.isMuted = chat.mute && chat.mute.isMuted; + res.isMuted = chat.muteExpiration == 0 ? false : true; 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();