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