mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
update forwarding copy mechanism
This commit is contained in:
@@ -348,7 +348,7 @@ export class WAConnection extends Base {
|
||||
generateForwardMessageContent (message: WAMessage, forceForward: boolean=false) {
|
||||
let content = message.message
|
||||
if (!content) throw new BaileysError ('no content in message', { status: 400 })
|
||||
content = JSON.parse(JSON.stringify(content)) // hacky copy
|
||||
content = WAMessageProto.Message.fromObject(content) // hacky copy
|
||||
|
||||
let key = Object.keys(content)[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user