mirror of
https://mau.dev/maunium/synapse.git
synced 2025-01-21 23:20:16 +01:00
Comment
This commit is contained in:
parent
d84319ae10
commit
b7b62bf9ea
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ class RoomListHandler(BaseHandler):
|
||||||
|
|
||||||
chunk.sort(key=lambda e: (-e["num_joined_members"], e["room_id"]))
|
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
|
new_limit = None
|
||||||
if chunk and (not limit or len(chunk) > limit):
|
if chunk and (not limit or len(chunk) > limit):
|
||||||
if limit:
|
if limit:
|
||||||
|
|
Loading…
Add table
Reference in a new issue