From f4dc41eda10b01e638c85d434a9db4822467ee0d Mon Sep 17 00:00:00 2001 From: w3nder Date: Tue, 22 Apr 2025 21:30:39 -0300 Subject: [PATCH] fix: simplify domainType --- src/WABinary/decode.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/WABinary/decode.ts b/src/WABinary/decode.ts index d8da84e..53e8c86 100644 --- a/src/WABinary/decode.ts +++ b/src/WABinary/decode.ts @@ -149,10 +149,7 @@ export const decodeDecompressedBinaryNode = ( const readAdJid = () => { const rawDomainType = readByte() - const domainType = typeof rawDomainType === 'number' - ? rawDomainType - : Number(rawDomainType) - + const domainType = Number(rawDomainType) const device = readByte() const user = readString(readByte())