Update messages-send.ts

This commit is contained in:
Rajeh Taher
2023-10-01 16:06:23 +03:00
committed by GitHub
parent 73963c0ff8
commit e587ae0bf8

View File

@@ -444,9 +444,9 @@ export const makeMessagesSocket = (config: SocketConfig) => {
const allJids: string[] = []
const meJids: string[] = []
const otherJids: string[] = []
for(const { user, device,domainType } of devices) {
const jid = jidEncode(user, isLid ? 'lid' : 's.whatsapp.net', device)
for(const { user, device } of devices) {
const isMe = user === meUser
const jid = jidEncode(user, !isMe && isLid ? 'lid' : 's.whatsapp.net', device)
if(isMe) {
meJids.push(jid)
} else {