summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-17 19:14:16 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-17 19:14:16 +0100
commit9f1800fba852314332d7e682484e456d28838619 (patch)
tree3e267827056d296feb050aff1fcb104604eb7aff /synapse/util
parentMerge pull request #878 from matrix-org/erikj/ujson (diff)
downloadsynapse-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/util')
-rw-r--r--synapse/util/distributor.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/util/distributor.py b/synapse/util/distributor.py
index d7cccc06b1..e68f94ce77 100644
--- a/synapse/util/distributor.py
+++ b/synapse/util/distributor.py
@@ -27,10 +27,6 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-def registered_user(distributor, user):
-    return distributor.fire("registered_user", user)
-
-
 def user_left_room(distributor, user, room_id):
     return preserve_context_over_fn(
         distributor.fire,