mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: message reaction fix from other party
This commit is contained in:
@@ -121,7 +121,13 @@ const processMessage = async(
|
|||||||
key: message.key,
|
key: message.key,
|
||||||
}
|
}
|
||||||
const operation = content.reactionMessage?.text ? 'add' : 'remove'
|
const operation = content.reactionMessage?.text ? 'add' : 'remove'
|
||||||
map['messages.reaction'] = { reaction, key: content.reactionMessage!.key!, operation }
|
const msgKey = content.reactionMessage!.key!
|
||||||
|
if(!message.key.fromMe) {
|
||||||
|
msgKey.remoteJid = message.key.remoteJid
|
||||||
|
msgKey.fromMe = !msgKey.fromMe
|
||||||
|
}
|
||||||
|
|
||||||
|
map['messages.reaction'] = { reaction, key: msgKey, operation }
|
||||||
} else if(message.messageStubType) {
|
} else if(message.messageStubType) {
|
||||||
const jid = message.key!.remoteJid!
|
const jid = message.key!.remoteJid!
|
||||||
//let actor = whatsappID (message.participant)
|
//let actor = whatsappID (message.participant)
|
||||||
|
|||||||
Reference in New Issue
Block a user