diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-02-19 11:19:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 11:19:11 +0000 |
commit | 2fb7794e60783b09aaea8e598cd1fa37b1fc5de1 (patch) | |
tree | 40dabbe9c153d39a440d4b0c71728f23c25fb88f /synapse/handlers/typing.py | |
parent | Merge pull request #6940 from matrix-org/babolivier/federate.md (diff) | |
parent | changelog (diff) | |
download | synapse-2fb7794e60783b09aaea8e598cd1fa37b1fc5de1.tar.xz |
Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekable
Make room alias lists peekable
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r-- | synapse/handlers/typing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index d5ca9cb07b..5406618431 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -125,7 +125,7 @@ class TypingHandler(object): if target_user_id != auth_user_id: raise AuthError(400, "Cannot set another user's typing state") - yield self.auth.check_joined_room(room_id, target_user_id) + yield self.auth.check_user_in_room(room_id, target_user_id) logger.debug("%s has started typing in %s", target_user_id, room_id) @@ -155,7 +155,7 @@ class TypingHandler(object): if target_user_id != auth_user_id: raise AuthError(400, "Cannot set another user's typing state") - yield self.auth.check_joined_room(room_id, target_user_id) + yield self.auth.check_user_in_room(room_id, target_user_id) logger.debug("%s has stopped typing in %s", target_user_id, room_id) |