Fix: Agregar fromMe al key de reacciones para mensajes propios
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m11s

This commit is contained in:
2025-12-04 14:34:15 -06:00
parent f6a58a4d16
commit 42f0dcafc1
3 changed files with 8 additions and 5 deletions

View File

@@ -587,7 +587,7 @@ class BaileysManager extends EventEmitter {
/**
* Send a reaction to a message
*/
async sendReaction(instanceId: string, jid: string, messageId: string, emoji: string): Promise<void> {
async sendReaction(instanceId: string, jid: string, messageId: string, emoji: string, fromMe: boolean = false): Promise<void> {
const managed = this.instances.get(instanceId)
if (!managed?.socket) {
throw new Error('Instance not connected')
@@ -598,11 +598,12 @@ class BaileysManager extends EventEmitter {
text: emoji,
key: {
remoteJid: jid,
id: messageId
id: messageId,
fromMe: fromMe
}
}
})
console.log(`[BaileysManager] Sent reaction ${emoji} to message ${messageId}`)
console.log(`[BaileysManager] Sent reaction ${emoji} to message ${messageId} (fromMe: ${fromMe})`)
}
/**