diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-24 11:32:13 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-24 11:32:13 +0100 |
commit | 97acd385a326302cb6791cf518db667bbf4f4d2a (patch) | |
tree | 385db0eb20a05b9d0f6b7ce181cc2e2253c24241 /synapse/handlers/room.py | |
parent | Remove unnecessary if (diff) | |
parent | Merge pull request #3591 from matrix-org/rav/logcontext_fixes (diff) | |
download | synapse-97acd385a326302cb6791cf518db667bbf4f4d2a.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/speed_up_calculate_state_delta
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 |