Update messages.ts

This commit is contained in:
Rajeh Taher
2023-05-06 01:27:50 +03:00
committed by GitHub
parent b7878e5311
commit 3478f2b679

View File

@@ -488,6 +488,16 @@ export const generateWAMessageContent = async(
m[messageType].contextInfo.mentionedJid = message.mentions 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) return WAProto.Message.fromObject(m)
} }