Skip to content

Commit 3a34fdc

Browse files
committed
Remove is_typing parameter in IntentAPI.set_typing
1 parent beade51 commit 3a34fdc

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

mautrix/appservice/api/intent.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,10 @@ async def get_room_member_info(
405405
async def set_typing(
406406
self,
407407
room_id: RoomID,
408-
is_typing: bool = True,
409-
timeout: int = 5000,
408+
timeout: int = 0,
410409
) -> None:
411-
"""
412-
Args:
413-
room_id: The ID of the room in which the user is typing.
414-
is_typing: Whether the user is typing.
415-
.. deprecated:: 0.18.10
416-
Use ``timeout=0`` instead of setting this flag.
417-
timeout: The length of time in seconds to mark this user as typing.
418-
"""
419410
await self.ensure_joined(room_id)
420-
await super().set_typing(room_id, timeout if is_typing else 0)
411+
await super().set_typing(room_id, timeout)
421412

422413
async def error_and_leave(
423414
self, room_id: RoomID, text: str | None = None, html: str | None = None

0 commit comments

Comments
 (0)