mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
wabinary: fix misinterpreted string encoding as hex (#1224, @vphelipe)
Thanks @vphelipe for providing the fix in #1224
This commit is contained in:
@@ -189,8 +189,6 @@ const encodeBinaryNodeInner = (
|
|||||||
pushByte(tokenIndex.index)
|
pushByte(tokenIndex.index)
|
||||||
} else if(isNibble(str)) {
|
} else if(isNibble(str)) {
|
||||||
writePackedBytes(str, 'nibble')
|
writePackedBytes(str, 'nibble')
|
||||||
} else if(isHex(str)) {
|
|
||||||
writePackedBytes(str, 'hex')
|
|
||||||
} else if(str) {
|
} else if(str) {
|
||||||
const decodedJid = jidDecode(str)
|
const decodedJid = jidDecode(str)
|
||||||
if(decodedJid) {
|
if(decodedJid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user