fix: correctly set reaction msg key

This commit is contained in:
Adhiraj Singh
2022-06-25 22:39:55 +05:30
parent baa3919a17
commit 66f49e0b3d

View File

@@ -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
}
}