mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update encode.ts
This commit is contained in:
@@ -52,10 +52,10 @@ export const encodeBinaryNode = (
|
||||
pushBytes(bytes)
|
||||
}
|
||||
|
||||
const writeJid = ({ agent, device, user, server }: FullJid) => {
|
||||
const writeJid = ({ domainType, device, user, server }: FullJid) => {
|
||||
if(typeof agent !== 'undefined' || typeof device !== 'undefined') {
|
||||
pushByte(TAGS.AD_JID)
|
||||
pushByte(agent || 0)
|
||||
pushByte(domainType || 0)
|
||||
pushByte(device || 0)
|
||||
writeString(user)
|
||||
} else {
|
||||
@@ -233,4 +233,4 @@ export const encodeBinaryNode = (
|
||||
}
|
||||
|
||||
return Buffer.from(buffer)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user