From 073b16a3a0f4497be6fcbac39b878278d7902040 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 7 Jan 2026 04:16:04 +0100 Subject: [PATCH] fix: clean up reaction tooling --- CHANGELOG.md | 3 ++- src/web/inbound.ts | 24 ------------------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09681b132..5215b976c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,8 @@ - Groups: `whatsapp.groups`, `telegram.groups`, and `imessage.groups` now act as allowlists when set. Add `"*"` to keep allow-all behavior. ### Fixes -- Tools: add Telegram/WhatsApp reaction tools (with per-provider gating), unify reaction removal semantics across Discord/Slack/Telegram/WhatsApp, and allow WhatsApp reaction routing across accounts. +- Tools: add Telegram/WhatsApp reaction tools (with per-provider gating). Thanks @zats for PR #353. +- Tools: unify reaction removal semantics across Discord/Slack/Telegram/WhatsApp and allow WhatsApp reaction routing across accounts. - Gateway/CLI: add daemon runtime selection (Node recommended; Bun optional) and document WhatsApp/Baileys Bun WebSocket instability on reconnect. - CLI: add `clawdbot docs` live docs search with pretty output. - Agent: treat compaction retry AbortError as a fallback trigger without swallowing non-abort errors. Thanks @erikpr1994 for PR #341. diff --git a/src/web/inbound.ts b/src/web/inbound.ts index f461d63d7..bb2229726 100644 --- a/src/web/inbound.ts +++ b/src/web/inbound.ts @@ -590,30 +590,6 @@ export async function monitorWebInbox(options: { const jid = toWhatsappJid(to); await sock.sendPresenceUpdate("composing", jid); }, - /** - * Send a reaction (emoji) to a specific message. - * Pass an empty string for emoji to remove the reaction. - */ - sendReaction: async ( - chatJid: string, - messageId: string, - emoji: string, - fromMe: boolean, - participant?: string, - ): Promise => { - const jid = toWhatsappJid(chatJid); - await sock.sendMessage(jid, { - react: { - text: emoji, - key: { - remoteJid: jid, - id: messageId, - fromMe, - participant, - }, - }, - }); - }, } as const; }