From 2da9f2deac2d37f9a6548709cb5eab693a5a0c0e Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sun, 1 Oct 2023 14:58:19 +0300 Subject: [PATCH] Update encode.ts --- src/WABinary/encode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WABinary/encode.ts b/src/WABinary/encode.ts index 2823a44..43eae95 100644 --- a/src/WABinary/encode.ts +++ b/src/WABinary/encode.ts @@ -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)