diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-05-17 17:56:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 17:56:42 +0100 |
commit | f8a1e76d645d818138ef30c81886d8bcd65d3b12 (patch) | |
tree | 469a099dda4c13d93f0bb1cf7d3cb7e51d628d9d /synapse/rest/client/v1/room.py | |
parent | Merge pull request #3212 from matrix-org/erikj/epa_stream (diff) | |
parent | Move RoomCreationHandler out of synapse.handlers.Handlers (diff) | |
download | synapse-f8a1e76d645d818138ef30c81886d8bcd65d3b12.tar.xz |
Merge pull request #3225 from matrix-org/rav/move_creation_handler
Move RoomCreationHandler out of synapse.handlers.Handlers
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r-- | synapse/rest/client/v1/room.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index fcf9c9ab44..0b984987ed 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -41,7 +41,7 @@ class RoomCreateRestServlet(ClientV1RestServlet): def __init__(self, hs): super(RoomCreateRestServlet, self).__init__(hs) - self.handlers = hs.get_handlers() + self._room_creation_handler = hs.get_room_creation_handler() def register(self, http_server): PATTERNS = "/createRoom" @@ -64,8 +64,7 @@ class RoomCreateRestServlet(ClientV1RestServlet): def on_POST(self, request): requester = yield self.auth.get_user_by_req(request) - handler = self.handlers.room_creation_handler - info = yield handler.create_room( + info = yield self._room_creation_handler.create_room( requester, self.get_room_config(request) ) |