mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 01:50:44 +08:00
fix(whatsapp): restore group @ replies with LID matching and send fallback
Match bot mentions across JID/LID formats, accept reply-to-bot triggers, keep raw quote participants, and fall back to plain text when quoted sends fail. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a218139da6
commit
9657b313a3
4 changed files with 171 additions and 39 deletions
|
|
@ -707,6 +707,7 @@ def process_inbound_payload(payload: dict[str, Any]) -> dict[str, Any]:
|
|||
bot_jid=bot_jid,
|
||||
require_mention=group_policy.require_mention,
|
||||
triggers=list(group_policy.triggers),
|
||||
metadata=inbound.metadata if isinstance(inbound.metadata, dict) else {},
|
||||
):
|
||||
return {"ok": True, "replies": []}
|
||||
reply = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue