mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
process-message: Flip message key of edit to find the original message
This commit is contained in:
@@ -303,7 +303,8 @@ const processMessage = async(
|
||||
'messages.update',
|
||||
[
|
||||
{
|
||||
key: protocolMsg.key!,
|
||||
// flip the sender / fromMe properties because they're in the perspective of the sender
|
||||
key: { ...message.key, id: protocolMsg.key?.id },
|
||||
update: {
|
||||
message: {
|
||||
editedMessage: {
|
||||
|
||||
Reference in New Issue
Block a user