Fix: Agregar fromMe al key de reacciones para mensajes propios
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m11s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m11s
This commit is contained in:
@@ -1094,12 +1094,13 @@ export async function handleToolCall(toolName: string, args: Record<string, any>
|
||||
|
||||
const rawMessage = msgResult.rows[0].raw_message
|
||||
const jid = rawMessage?.key?.remoteJid
|
||||
const fromMe = rawMessage?.key?.fromMe || false
|
||||
|
||||
if (!jid) {
|
||||
return mcpError('No se pudo determinar el JID del mensaje')
|
||||
}
|
||||
|
||||
await baileysManager.sendReaction(instanceId, jid, messageId, emoji)
|
||||
await baileysManager.sendReaction(instanceId, jid, messageId, emoji, fromMe)
|
||||
|
||||
return mcpSuccess({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user