From ecb50450b7db3175510c858f3af8c7e015260844 Mon Sep 17 00:00:00 2001 From: Shir Serlui <70711723+shirser121@users.noreply.github.com> Date: Sat, 9 Aug 2025 00:46:18 +0300 Subject: [PATCH] Fix checking if sending to a group (#3592) * Fix checking if sending to a group * chore: mark channels as done feature * refactor: add safety check for chat.id.isGroup --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index 39a0e42..224ac7e 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -247,7 +247,7 @@ exports.LoadUtils = () => { let from = chat.id.isLid() ? lidUser : meUser; let participant; - if (chat.isGroup) { + if (typeof chat.id?.isGroup === 'function' && chat.id.isGroup()) { from = chat.groupMetadata && chat.groupMetadata.isLidAddressingMode ? lidUser : meUser; participant = window.Store.WidFactory.toUserWid(from); }