diff options
author | Erik Johnston <erikj@jki.re> | 2018-08-22 11:35:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 11:35:55 +0100 |
commit | 764030cf632a21b857b52fb61fad04f3d23f22c0 (patch) | |
tree | 3d829ed43131171127616eaa332a3ef95632eabe /synapse/handlers/user_directory.py | |
parent | Merge pull request #3673 from matrix-org/erikj/refactor_state_handler (diff) | |
parent | Rename WorkerProfileHandler to BaseProfileHandler (diff) | |
download | synapse-764030cf632a21b857b52fb61fad04f3d23f22c0.tar.xz |
Merge pull request #3659 from matrix-org/erikj/split_profiles
Allow profile updates to happen on workers
Diffstat (limited to 'synapse/handlers/user_directory.py')
-rw-r--r-- | synapse/handlers/user_directory.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py index 37dda64587..d8413d6aa7 100644 --- a/synapse/handlers/user_directory.py +++ b/synapse/handlers/user_directory.py @@ -119,6 +119,8 @@ class UserDirectoryHandler(object): """Called to update index of our local user profiles when they change irrespective of any rooms the user may be in. """ + # FIXME(#3714): We should probably do this in the same worker as all + # the other changes. yield self.store.update_profile_in_user_dir( user_id, profile.display_name, profile.avatar_url, None, ) @@ -127,6 +129,8 @@ class UserDirectoryHandler(object): def handle_user_deactivated(self, user_id): """Called when a user ID is deactivated """ + # FIXME(#3714): We should probably do this in the same worker as all + # the other changes. yield self.store.remove_from_user_dir(user_id) yield self.store.remove_from_user_in_public_room(user_id) |