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/register.py | |
parent | Add remote profile cache (diff) | |
download | synapse-bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3.tar.xz |
Split out profile handler to fix tests
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index ee3a2269a8..560fb36254 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -36,6 +36,7 @@ class RegistrationHandler(BaseHandler): super(RegistrationHandler, self).__init__(hs) self.auth = hs.get_auth() + self.profile_handler = hs.get_profile_handler() self.captcha_client = CaptchaServerHttpClient(hs) self._next_generated_user_id = None @@ -423,8 +424,7 @@ class RegistrationHandler(BaseHandler): if displayname is not None: logger.info("setting user display name: %s -> %s", user_id, displayname) - profile_handler = self.hs.get_handlers().profile_handler - yield profile_handler.set_displayname( + yield self.profile_handler.set_displayname( user, requester, displayname, by_admin=True, ) |