Update encode.ts

This commit is contained in:
Rajeh Taher
2023-10-01 14:58:19 +03:00
committed by GitHub
parent 6c1fd75789
commit 2da9f2deac

View File

@@ -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)