diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-04-08 11:39:34 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-04-08 11:39:34 +0100 |
commit | d63b49137a473164d5de13be0da62cf03af8a90e (patch) | |
tree | a7a8bac8d9fd7277bd19907dfe25c24f7c48524c /synapse/handlers/room_member.py | |
parent | Merge pull request #708 from matrix-org/markjh/remove_collect_presencelike_data (diff) | |
parent | Move all the wrapper functions for distributor.fire (diff) | |
download | synapse-d63b49137a473164d5de13be0da62cf03af8a90e.tar.xz |
Merge pull request #710 from matrix-org/markjh/move_fire
Move all the wrapper functions for distributor.fire
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index b6ef3c91af..753c75d9c1 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -23,8 +23,8 @@ from synapse.api.constants import ( EventTypes, Membership, ) from synapse.api.errors import AuthError, SynapseError, Codes -from synapse.util.logcontext import preserve_context_over_fn from synapse.util.async import Linearizer +from synapse.util.distributor import user_left_room, user_joined_room from signedjson.sign import verify_signed_json from signedjson.key import decode_verify_key_bytes @@ -38,20 +38,6 @@ logger = logging.getLogger(__name__) id_server_scheme = "https://" -def user_left_room(distributor, user, room_id): - return preserve_context_over_fn( - distributor.fire, - "user_left_room", user=user, room_id=room_id - ) - - -def user_joined_room(distributor, user, room_id): - return preserve_context_over_fn( - distributor.fire, - "user_joined_room", user=user, room_id=room_id - ) - - class RoomMemberHandler(BaseHandler): # TODO(paul): This handler currently contains a messy conflation of # low-level API that works on UserID objects and so on, and REST-level |