fix(gateway): fix matrix lingering typing indicator

This commit is contained in:
asheriif
2026-04-15 10:24:57 +00:00
committed by Teknium
parent 47e6ea84bb
commit 33ae403890
2 changed files with 31 additions and 1 deletions

View File

@@ -729,6 +729,14 @@ class MatrixAdapter(BasePlatformAdapter):
except Exception:
pass
async def stop_typing(self, chat_id: str) -> None:
"""Stop the Matrix typing indicator."""
if self._client:
try:
await self._client.set_typing(RoomID(chat_id), timeout=0)
except Exception:
pass
async def edit_message(
self, chat_id: str, message_id: str, content: str
) -> SendResult: