mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 02:53:51 +01:00
Add a sprinkling of logger.debug() into typing notification handler
This commit is contained in:
parent
6e1531682b
commit
966c4b2b04
1 changed files with 8 additions and 0 deletions
|
@ -67,6 +67,10 @@ class TypingNotificationHandler(BaseHandler):
|
|||
if target_user != auth_user:
|
||||
raise AuthError(400, "Cannot set another user's typing state")
|
||||
|
||||
logger.debug(
|
||||
"%s has started typing in %s", target_user.to_string(), room_id
|
||||
)
|
||||
|
||||
until = self.clock.time_msec() + timeout
|
||||
member = RoomMember(room_id=room_id, user=target_user)
|
||||
|
||||
|
@ -98,6 +102,10 @@ class TypingNotificationHandler(BaseHandler):
|
|||
if target_user != auth_user:
|
||||
raise AuthError(400, "Cannot set another user's typing state")
|
||||
|
||||
logger.debug(
|
||||
"%s has stopped typing in %s", target_user.to_string(), room_id
|
||||
)
|
||||
|
||||
member = RoomMember(room_id=room_id, user=target_user)
|
||||
|
||||
yield self._stopped_typing(member)
|
||||
|
|
Loading…
Reference in a new issue