mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: include [0] byte when encoding on MD
This commit is contained in:
@@ -6,7 +6,7 @@ import type { BinaryNode, BinaryNodeCodingOptions } from './types'
|
||||
export const encodeBinaryNode = (
|
||||
{ tag, attrs, content }: BinaryNode,
|
||||
opts: Pick<BinaryNodeCodingOptions, 'TAGS' | 'TOKEN_MAP'> = constants,
|
||||
buffer: number[] = []
|
||||
buffer: number[] = [0]
|
||||
) => {
|
||||
const { TAGS, TOKEN_MAP } = opts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user