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