diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-12 10:28:10 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-12 10:28:10 +0100 |
commit | 4df11b503957a74a948150950da49574c21887bf (patch) | |
tree | c389d0586c5e9cc15a4cb0973f00a74c0ce989db /synapse/handlers/room.py | |
parent | Initial hack at wiring together pagination and backfill (diff) | |
download | synapse-4df11b503957a74a948150950da49574c21887bf.tar.xz |
Make get_current_token accept a direction parameter, which tells whether the source whether we want a token for going 'forwards' or 'backwards'
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index cfa2e38ed2..29b6d52757 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -577,8 +577,8 @@ class RoomEventSource(object): defer.returnValue((events, end_key)) - def get_current_key(self): - return self.store.get_room_events_max_id() + def get_current_key(self, direction='f'): + return self.store.get_room_events_max_id(direction) @defer.inlineCallbacks def get_pagination_rows(self, user, config, key): |