fix: send message to lid groups

This commit is contained in:
canove
2025-04-25 07:39:29 -03:00
parent 397ad46c68
commit a4338fac12

View File

@@ -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