summary refs log tree commit diff
path: root/synapse/rest/client/v1/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-18 15:29:45 +0100
committerErik Johnston <erik@matrix.org>2018-07-18 15:33:03 +0100
commitbacdf0cbf9fdbf9bbab2420b86308830ac4e4592 (patch)
tree9f3561c921aada932160c4b0a485bedce6df120e /synapse/rest/client/v1/room.py
parentSplit MessageHandler into read only and writers (diff)
downloadsynapse-bacdf0cbf9fdbf9bbab2420b86308830ac4e4592.tar.xz
Move RoomContextHandler out of Handlers
This is in preparation for moving GET /context/ to a worker
Diffstat (limited to 'synapse/rest/client/v1/room.py')
-rw-r--r--synapse/rest/client/v1/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 8b6be9da96..2c9459534e 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -523,7 +523,7 @@ class RoomEventContextServlet(ClientV1RestServlet):
     def __init__(self, hs):
         super(RoomEventContextServlet, self).__init__(hs)
         self.clock = hs.get_clock()
-        self.handlers = hs.get_handlers()
+        self.room_context_handler = hs.get_room_context_handler()
 
     @defer.inlineCallbacks
     def on_GET(self, request, room_id, event_id):
@@ -531,7 +531,7 @@ class RoomEventContextServlet(ClientV1RestServlet):
 
         limit = parse_integer(request, "limit", default=10)
 
-        results = yield self.handlers.room_context_handler.get_event_context(
+        results = yield self.room_context_handler.get_event_context(
             requester.user,
             room_id,
             event_id,