From 007ee59cea0ac886740bff30aea52951c824f1ee Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Fri, 30 May 2025 04:20:43 -0300 Subject: [PATCH] Update Utils.js to fix chat.isReadOnly (#3515) Fixing chat.isReadOnly attribute Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index f9d2902..e69208a 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -464,6 +464,7 @@ exports.LoadUtils = () => { const chatWid = window.Store.WidFactory.createWid((chat.id._serialized)); await window.Store.GroupMetadata.update(chatWid); res.groupMetadata = chat.groupMetadata.serialize(); + res.isReadOnly = chat.groupMetadata.announce; } res.lastMessage = null;