summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-31 11:05:16 +0100
committerDavid Baker <dave@matrix.org>2016-05-31 11:05:16 +0100
commit887c6e6f052e1dc5e61a0b4bade8e7bd3a63e275 (patch)
tree81ccb0ae8e2a57d0acacc1b604f65859875c6532 /synapse/server.py
parentFix to allow start with postgres (diff)
downloadsynapse-887c6e6f052e1dc5e61a0b4bade8e7bd3a63e275.tar.xz
Split out the room list handler
So I can use it from federation bits without pulling in all the handlers.
Diffstat (limited to '')
-rw-r--r--synapse/server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 01f828819f..bfd5608b7d 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -30,6 +30,7 @@ from synapse.handlers import Handlers
 from synapse.handlers.presence import PresenceHandler
 from synapse.handlers.sync import SyncHandler
 from synapse.handlers.typing import TypingHandler
+from synapse.handlers.room import RoomListHandler
 from synapse.state import StateHandler
 from synapse.storage import DataStore
 from synapse.util import Clock
@@ -84,6 +85,7 @@ class HomeServer(object):
         'presence_handler',
         'sync_handler',
         'typing_handler',
+        'room_list_handler',
         'notifier',
         'distributor',
         'client_resource',
@@ -179,6 +181,9 @@ class HomeServer(object):
     def build_sync_handler(self):
         return SyncHandler(self)
 
+    def build_room_list_handler(self):
+        return RoomListHandler(self)
+
     def build_event_sources(self):
         return EventSources(self)