fix(whatsapp): ack reaction logic for group activation 'always' mode

- Fix bug where ack reaction was not sent when group activation is 'always'
- When requireMention=false (activation: always), always send reaction
- Add test case for activation='always' scenario
- Update inline comments for clarity
This commit is contained in:
sheeek authored and Peter Steinberger committed 2026-01-11 04:10:43 +01:00
1 parent b3b507c6ea
commit c3587d6cae
2 files changed
+52 -5

No files matched your search

+3 -1
View File
@@ -1405,7 +1405,9 @@ export async function monitorWebProvider(
conversationId,
});
const requireMention = activation !== "always";
if (!requireMention) return false;
// If mention is not required (activation === "always"), always react
if (!requireMention) return true;
// Otherwise, only react if bot was mentioned
return msg.wasMentioned === true;
}
return false;