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