diff options
author | Erik Johnston <erikj@jki.re> | 2018-05-09 16:07:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 16:07:14 +0100 |
commit | 5adb75bcbad6646e579520b74bfc69dcc28b48ba (patch) | |
tree | c073827195a0acc6d73abc78cb279e28e0c6e820 /synapse/handlers/sync.py | |
parent | Merge pull request #3200 from matrix-org/erikj/remove_membership_change (diff) | |
parent | Fix returned token is no longer a tuple (diff) | |
download | synapse-5adb75bcbad6646e579520b74bfc69dcc28b48ba.tar.xz |
Merge pull request #3198 from matrix-org/erikj/fixup_return_pagination
Refactor get_recent_events_for_room return type
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index b52e4c2aff..c25a76d215 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -429,7 +429,7 @@ class SyncHandler(object): Returns: A Deferred map from ((type, state_key)->Event) """ - last_events, token = yield self.store.get_recent_events_for_room( + last_events, _ = yield self.store.get_recent_events_for_room( room_id, end_token=stream_position.room_key, limit=1, ) |