diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-06-17 19:14:16 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-06-17 19:14:16 +0100 |
commit | 9f1800fba852314332d7e682484e456d28838619 (patch) | |
tree | 3e267827056d296feb050aff1fcb104604eb7aff /synapse/handlers/profile.py | |
parent | Merge pull request #878 from matrix-org/erikj/ujson (diff) | |
download | synapse-9f1800fba852314332d7e682484e456d28838619.tar.xz |
Remove registered_users from the distributor.
The only place that was observed was to set the profile. I've made it so that the profile is set within store.register in the same transaction that creates the user. This required some slight changes to the registration code for upgrading guest users, since it previously relied on the distributor swallowing errors if the profile already existed.
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index e37409170d..711a6a567f 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -36,13 +36,6 @@ class ProfileHandler(BaseHandler): "profile", self.on_profile_query ) - distributor = hs.get_distributor() - - distributor.observe("registered_user", self.registered_user) - - def registered_user(self, user): - return self.store.create_profile(user.localpart) - @defer.inlineCallbacks def get_displayname(self, target_user): if self.hs.is_mine(target_user): |