mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Support decoding disappearing messages + events bug fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Message } from 'protobufjs'
|
||||
import { WA } from './Constants'
|
||||
import { proto } from '../../WAMessage/WAMessage'
|
||||
|
||||
export default class Encoder {
|
||||
data: number[] = []
|
||||
@@ -111,7 +111,7 @@ export default class Encoder {
|
||||
this.writeListStart(children.length)
|
||||
children.forEach(c => c && this.writeNode(c))
|
||||
} else if (typeof children === 'object') {
|
||||
const buffer = WA.Message.encode(children as proto.WebMessageInfo).finish()
|
||||
const buffer = WA.Message.encode(children as any).finish()
|
||||
this.writeByteLength(buffer.length)
|
||||
this.pushBytes(buffer)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user