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)
|
pushBytes(bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
const writeJid = ({ agent, device, user, server }: FullJid) => {
|
const writeJid = ({ domainType, device, user, server }: FullJid) => {
|
||||||
if(typeof agent !== 'undefined' || typeof device !== 'undefined') {
|
if(typeof agent !== 'undefined' || typeof device !== 'undefined') {
|
||||||
pushByte(TAGS.AD_JID)
|
pushByte(TAGS.AD_JID)
|
||||||
pushByte(agent || 0)
|
pushByte(domainType || 0)
|
||||||
pushByte(device || 0)
|
pushByte(device || 0)
|
||||||
writeString(user)
|
writeString(user)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user