diff options
author | Erik Johnston <erik@matrix.org> | 2017-05-31 11:51:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-05-31 11:51:01 +0100 |
commit | eeb2f9e546060ca9f2ef7260220b51d85d9b0d92 (patch) | |
tree | c0b211afe6a1509e02ff2667a44cd92542fb50ef /synapse/server.py | |
parent | Merge pull request #2251 from matrix-org/erikj/current_state_delta_stream (diff) | |
download | synapse-eeb2f9e546060ca9f2ef7260220b51d85d9b0d92.tar.xz |
Add user_directory to database
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index e400e278c6..a38e5179e0 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -49,6 +49,7 @@ from synapse.handlers.events import EventHandler, EventStreamHandler from synapse.handlers.initial_sync import InitialSyncHandler from synapse.handlers.receipts import ReceiptsHandler from synapse.handlers.read_marker import ReadMarkerHandler +from synapse.handlers.user_directory import UserDirectoyHandler from synapse.http.client import SimpleHttpClient, InsecureInterceptableContextFactory from synapse.http.matrixfederationclient import MatrixFederationHttpClient from synapse.notifier import Notifier @@ -137,6 +138,7 @@ class HomeServer(object): 'tcp_replication', 'read_marker_handler', 'action_generator', + 'user_directory_handler', ] def __init__(self, hostname, **kwargs): @@ -304,6 +306,9 @@ class HomeServer(object): def build_action_generator(self): return ActionGenerator(self) + def build_user_directory_handler(self): + return UserDirectoyHandler(self) + def remove_pusher(self, app_id, push_key, user_id): return self.get_pusherpool().remove_pusher(app_id, push_key, user_id) |