diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-07-24 10:43:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 10:43:30 +0100 |
commit | a6781450108f476c2c83d25a70e27f331e4c832e (patch) | |
tree | 2fbe0f15fe17c27664a6c4a7e0058e286bd6ed56 /synapse/handlers/room.py | |
parent | another couple of logcontext leaks (diff) | |
parent | Merge pull request #3555 from matrix-org/erikj/client_apis_move (diff) | |
download | synapse-a6781450108f476c2c83d25a70e27f331e4c832e.tar.xz |
Merge branch 'develop' into rav/logcontext_fixes
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 |