Skip to content
Snippets Groups Projects
Commit 90c070c8 authored by Erik Johnston's avatar Erik Johnston
Browse files

Add total_room_count_estimate to /publicRooms

parent 6f0c5e5d
No related merge requests found
......@@ -125,6 +125,8 @@ class RoomListHandler(BaseHandler):
if r not in newly_unpublished and rooms_to_num_joined[room_id] > 0
]
total_room_count = len(rooms_to_scan)
if since_token:
# Filter out rooms we've already returned previously
# `since_token.current_limit` is the index of the last room we
......@@ -188,6 +190,7 @@ class RoomListHandler(BaseHandler):
results = {
"chunk": chunk,
"total_room_count_estimate": total_room_count,
}
if since_token:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment