mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update messages.ts
This commit is contained in:
@@ -487,7 +487,17 @@ export const generateWAMessageContent = async(
|
||||
m[messageType].contextInfo = m[messageType] || { }
|
||||
m[messageType].contextInfo.mentionedJid = message.mentions
|
||||
}
|
||||
|
||||
|
||||
if('edit' in message) {
|
||||
m = {
|
||||
protocolMessage: {
|
||||
key: message.edit,
|
||||
editedMessage: m,
|
||||
type: WAProto.Message.ProtocolMessage.Type.MESSAGE_EDIT
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return WAProto.Message.fromObject(m)
|
||||
}
|
||||
|
||||
@@ -886,4 +896,4 @@ export const assertMediaContent = (content: proto.IMessage | null | undefined) =
|
||||
}
|
||||
|
||||
return mediaContent
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user