mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 01:04:58 -05:00
Add a sprinkling of logger.debug() into typing notification handler
This commit is contained in:
parent
6e1531682b
commit
966c4b2b04
@ -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 New Issue
Block a user