mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: simplify domainType
This commit is contained in:
@@ -149,10 +149,7 @@ export const decodeDecompressedBinaryNode = (
|
|||||||
|
|
||||||
const readAdJid = () => {
|
const readAdJid = () => {
|
||||||
const rawDomainType = readByte()
|
const rawDomainType = readByte()
|
||||||
const domainType = typeof rawDomainType === 'number'
|
const domainType = Number(rawDomainType)
|
||||||
? rawDomainType
|
|
||||||
: Number(rawDomainType)
|
|
||||||
|
|
||||||
|
|
||||||
const device = readByte()
|
const device = readByte()
|
||||||
const user = readString(readByte())
|
const user = readString(readByte())
|
||||||
|
|||||||
Reference in New Issue
Block a user