diff options
author | Erik Johnston <erik@matrix.org> | 2017-08-25 14:34:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-08-25 14:34:56 +0100 |
commit | bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3 (patch) | |
tree | a87f982bf6763c263d45db6fcbef6cb9813d9015 /synapse/handlers/room_member.py | |
parent | Add remote profile cache (diff) | |
download | synapse-bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3.tar.xz |
Split out profile handler to fix tests
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index b3f979b246..dadc19d45b 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -45,6 +45,8 @@ class RoomMemberHandler(BaseHandler): def __init__(self, hs): super(RoomMemberHandler, self).__init__(hs) + self.profile_handler = hs.get_profile_handler() + self.member_linearizer = Linearizer(name="member") self.clock = hs.get_clock() @@ -255,7 +257,7 @@ class RoomMemberHandler(BaseHandler): content["membership"] = Membership.JOIN - profile = self.hs.get_handlers().profile_handler + profile = self.profile_handler if not content_specified: content["displayname"] = yield profile.get_displayname(target) content["avatar_url"] = yield profile.get_avatar_url(target) |