Fix isGroup (#3380)
* Update Utils.js getChatModel because Meta chat object affected Group Chats * Ajust to set isGroup as false as default
This commit is contained in:
parent
fc722dd1d3
commit
301c9af8b7
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue