From a4338fac12a54a36890845c99abd56e92b88cdf6 Mon Sep 17 00:00:00 2001 From: canove Date: Fri, 25 Apr 2025 07:39:29 -0300 Subject: [PATCH] fix: send message to lid groups --- src/Socket/messages-send.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index c165eb0..e398fc2 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -436,7 +436,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { const senderKeyJids: string[] = [] // ensure a connection is established with every device for(const { user, device } of devices) { - const jid = jidEncode(user, groupData?.addressingMode ? 'lid' : 's.whatsapp.net', device) + const jid = jidEncode(user, groupData?.addressingMode === 'lid' ? 'lid' : 's.whatsapp.net', device) if(!senderKeyMap[jid] || !!participant) { senderKeyJids.push(jid) // store that this person has had the sender keys sent to them