process-message: Flip message key of edit to find the original message

This commit is contained in:
Rajeh Taher
2025-02-16 15:20:32 +02:00
parent 5f232ee9ae
commit b8470061c3

View File

@@ -303,7 +303,8 @@ const processMessage = async(
'messages.update', '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: { update: {
message: { message: {
editedMessage: { editedMessage: {