mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update messages-send.ts
This commit is contained in:
@@ -444,9 +444,9 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
const allJids: string[] = []
|
const allJids: string[] = []
|
||||||
const meJids: string[] = []
|
const meJids: string[] = []
|
||||||
const otherJids: string[] = []
|
const otherJids: string[] = []
|
||||||
for(const { user, device,domainType } of devices) {
|
for(const { user, device } of devices) {
|
||||||
const jid = jidEncode(user, isLid ? 'lid' : 's.whatsapp.net', device)
|
|
||||||
const isMe = user === meUser
|
const isMe = user === meUser
|
||||||
|
const jid = jidEncode(user, !isMe && isLid ? 'lid' : 's.whatsapp.net', device)
|
||||||
if(isMe) {
|
if(isMe) {
|
||||||
meJids.push(jid)
|
meJids.push(jid)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user