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:
@@ -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})`)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user