From 66f49e0b3d6613ebd2de49778e77585ac0c142e9 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sat, 25 Jun 2022 22:39:55 +0530 Subject: [PATCH] fix: correctly set reaction msg key --- src/Utils/process-message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/process-message.ts b/src/Utils/process-message.ts index c7f3355..c41579a 100644 --- a/src/Utils/process-message.ts +++ b/src/Utils/process-message.ts @@ -31,8 +31,8 @@ export const cleanMessage = (message: proto.IWebMessageInfo, meId: string) => { if(content?.reactionMessage) { const msgKey = content.reactionMessage.key! if(!message.key.fromMe) { - msgKey.fromMe = areJidsSameUser(msgKey.participant || msgKey.remoteJid, meId) msgKey.remoteJid = message.key.remoteJid + msgKey.fromMe = areJidsSameUser(msgKey.participant || msgKey.remoteJid, meId) msgKey.participant = msgKey.participant || message.key.participant } }