summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 11:51:01 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 11:51:01 +0100
commiteeb2f9e546060ca9f2ef7260220b51d85d9b0d92 (patch)
treec0b211afe6a1509e02ff2667a44cd92542fb50ef /synapse/notifier.py
parentMerge pull request #2251 from matrix-org/erikj/current_state_delta_stream (diff)
downloadsynapse-eeb2f9e546060ca9f2ef7260220b51d85d9b0d92.tar.xz
Add user_directory to database
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r--synapse/notifier.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index 48566187ab..6b1709d700 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -167,6 +167,7 @@ class Notifier(object):
 
         self.clock = hs.get_clock()
         self.appservice_handler = hs.get_application_service_handler()
+        self.user_directory_handler = hs.get_user_directory_handler()
 
         if hs.should_send_federation():
             self.federation_sender = hs.get_federation_sender()
@@ -251,7 +252,10 @@ class Notifier(object):
         """Notify any user streams that are interested in this room event"""
         # poke any interested application service.
         preserve_fn(self.appservice_handler.notify_interested_services)(
-            room_stream_id)
+            room_stream_id
+        )
+
+        preserve_fn(self.user_directory_handler.notify_new_event)()
 
         if self.federation_sender:
             preserve_fn(self.federation_sender.notify_new_events)(