Update decode.ts

This commit is contained in:
Rajeh Taher
2023-09-30 23:59:08 +03:00
committed by GitHub
parent 16bd627685
commit 8c04171043

View File

@@ -148,7 +148,7 @@ export const decodeDecompressedBinaryNode = (
const device = readByte() const device = readByte()
const user = readString(readByte()) const user = readString(readByte())
return jidEncode(user, 's.whatsapp.net', device, agent) return jidEncode(user, agent == 0 ? 's.whatsapp.net' : 'lid', device)
} }
const readString = (tag: number): string => { const readString = (tag: number): string => {