diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-16 11:00:29 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-16 11:00:29 +0100 |
commit | b7b62bf9eac3f1f92a4913cfdf1f568752dcf8c0 (patch) | |
tree | 714dc0e9ae176579e190ced9b3c879b409b9ef98 | |
parent | Add remote reoom cache (diff) | |
download | synapse-b7b62bf9eac3f1f92a4913cfdf1f568752dcf8c0.tar.xz |
Comment
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room_list.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py index ec0a293a37..f15987b265 100644 --- a/synapse/handlers/room_list.py +++ b/synapse/handlers/room_list.py @@ -220,6 +220,8 @@ class RoomListHandler(BaseHandler): chunk.sort(key=lambda e: (-e["num_joined_members"], e["room_id"])) + # Work out the new limit of the batch for pagination, or None if we + # know there are no more results that would be returned. new_limit = None if chunk and (not limit or len(chunk) > limit): if limit: |