summary refs log tree commit diff
path: root/synapse/handlers/user_directory.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-06-07 14:04:50 +0100
committerGitHub <noreply@github.com>2017-06-07 14:04:50 +0100
commitf45f07ab86e2a842570da49f8f5c5aa5a1cd2ebe (patch)
tree847971cd7bf68dabe1bbfae50a29910f95806358 /synapse/handlers/user_directory.py
parentMerge pull request #2248 from matrix-org/erikj/state_fixup (diff)
parentDon't start user_directory handling on workers (diff)
downloadsynapse-f45f07ab86e2a842570da49f8f5c5aa5a1cd2ebe.tar.xz
Merge pull request #2258 from matrix-org/erikj/user_dir
Don't start user_directory handling on workers
Diffstat (limited to 'synapse/handlers/user_directory.py')
-rw-r--r--synapse/handlers/user_directory.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 4e568de8c4..43eb1c78e9 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -46,6 +46,9 @@ class UserDirectoyHandler(object):
         self.state = hs.get_state_handler()
         self.server_name = hs.hostname
         self.clock = hs.get_clock()
+        self.notifier = hs.get_notifier()
+
+        self.notifier.add_replication_callback(self.notify_new_event)
 
         # When start up for the first time we need to populate the user_directory.
         # This is a set of user_id's we've inserted already