Update Utils.js to fix chat.isReadOnly (#3515)
Fixing chat.isReadOnly attribute Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
c018e2dcbe
commit
007ee59cea
1 changed files with 1 additions and 0 deletions
|
|
@ -464,6 +464,7 @@ exports.LoadUtils = () => {
|
||||||
const chatWid = window.Store.WidFactory.createWid((chat.id._serialized));
|
const chatWid = window.Store.WidFactory.createWid((chat.id._serialized));
|
||||||
await window.Store.GroupMetadata.update(chatWid);
|
await window.Store.GroupMetadata.update(chatWid);
|
||||||
res.groupMetadata = chat.groupMetadata.serialize();
|
res.groupMetadata = chat.groupMetadata.serialize();
|
||||||
|
res.isReadOnly = chat.groupMetadata.announce;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.lastMessage = null;
|
res.lastMessage = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue