From b8470061c3c551ff1a38d68f97d2c1624771d336 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sun, 16 Feb 2025 15:20:32 +0200 Subject: [PATCH] process-message: Flip message key of edit to find the original message --- src/Utils/process-message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Utils/process-message.ts b/src/Utils/process-message.ts index 133b0ff..348bf4d 100644 --- a/src/Utils/process-message.ts +++ b/src/Utils/process-message.ts @@ -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: {