mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-10-19 15:33:54 +00:00
improve: send typing indicator immediately on message receive
This commit is contained in:
parent
84c12b0c23
commit
bb8961ab73
1 changed files with 6 additions and 0 deletions
|
|
@ -67,6 +67,12 @@ async def poll_messages(config: dict) -> None:
|
|||
|
||||
async def _dispatch_message(config: dict, msg: dict) -> None:
|
||||
chat_id = msg.get("chatId", "")
|
||||
|
||||
# Show typing indicator immediately so user sees activity
|
||||
port = int(config.get("bridge_port", 3100))
|
||||
base_url = bridge_manager.get_bridge_url(port)
|
||||
await wa_client.send_typing(base_url, chat_id)
|
||||
|
||||
existing = _find_chats_by_jid(chat_id)
|
||||
|
||||
if existing:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue