diff options
author | Erik Johnston <erikj@jki.re> | 2018-07-24 10:42:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 10:42:28 +0100 |
commit | d436ad332c78cf0ad306f95c3f36f83190d2b133 (patch) | |
tree | 6ca24a89a40ea34be26412eb60cdd69f0f0caede /synapse/handlers/room.py | |
parent | Merge pull request #3590 from matrix-org/rav/persist_events_metrics (diff) | |
parent | Merge branch 'develop' into erikj/client_apis_move (diff) | |
download | synapse-d436ad332c78cf0ad306f95c3f36f83190d2b133.tar.xz |
Merge pull request #3555 from matrix-org/erikj/client_apis_move
Make client_reader support some more read only APIs
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index f67512078b..6150b7e226 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -395,7 +395,11 @@ class RoomCreationHandler(BaseHandler): ) -class RoomContextHandler(BaseHandler): +class RoomContextHandler(object): + def __init__(self, hs): + self.hs = hs + self.store = hs.get_datastore() + @defer.inlineCallbacks def get_event_context(self, user, room_id, event_id, limit): """Retrieves events, pagination tokens and state around a given event |