diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-05-17 09:01:09 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-05-17 09:08:42 +0100 |
commit | c46367d0d755e810745cae6d0212bdaa12de7645 (patch) | |
tree | 73aec35a742c6ef8c29d06d8ceb439e6dd42cc75 /synapse/server.py | |
parent | Merge pull request #3163 from matrix-org/cohort_analytics (diff) | |
download | synapse-c46367d0d755e810745cae6d0212bdaa12de7645.tar.xz |
Move RoomCreationHandler out of synapse.handlers.Handlers
Handlers is deprecated nowadays, so let's move this out before I add a new dependency on it. Also fix the docstrings on create_room.
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 21cde5b6fc..9e6f3584b2 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -46,6 +46,7 @@ from synapse.handlers.devicemessage import DeviceMessageHandler from synapse.handlers.device import DeviceHandler from synapse.handlers.e2e_keys import E2eKeysHandler from synapse.handlers.presence import PresenceHandler +from synapse.handlers.room import RoomCreationHandler from synapse.handlers.room_list import RoomListHandler from synapse.handlers.room_member import RoomMemberMasterHandler from synapse.handlers.room_member_worker import RoomMemberWorkerHandler @@ -109,6 +110,7 @@ class HomeServer(object): 'federation_server', 'handlers', 'auth', + 'room_creation_handler', 'state_handler', 'state_resolution_handler', 'presence_handler', @@ -227,6 +229,9 @@ class HomeServer(object): def build_simple_http_client(self): return SimpleHttpClient(self) + def build_room_creation_handler(self): + return RoomCreationHandler(self) + def build_state_handler(self): return StateHandler(self) |