diff options
author | Erik Johnston <erikj@jki.re> | 2017-06-01 15:39:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 15:39:32 +0100 |
commit | 87e5e05aeae3f921f17af4d57cfec6e15f104c42 (patch) | |
tree | 45228bb7292a2cabd0a7c89ecaab42f7d33d3569 /synapse/notifier.py | |
parent | Merge pull request #2251 from matrix-org/erikj/current_state_delta_stream (diff) | |
parent | Fix sqlite (diff) | |
download | synapse-87e5e05aeae3f921f17af4d57cfec6e15f104c42.tar.xz |
Merge pull request #2252 from matrix-org/erikj/user_dir
Add a user directory
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r-- | synapse/notifier.py | 6 |
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)( |