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

Increment by one, not five

parent 1ad6222e
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ class SearchHandler(BaseHandler): ...@@ -178,7 +178,7 @@ class SearchHandler(BaseHandler):
# or we run out of things. # or we run out of things.
# But only go around 5 times since otherwise synapse will be sad. # But only go around 5 times since otherwise synapse will be sad.
while len(room_events) < search_filter.limit() and i < 5: while len(room_events) < search_filter.limit() and i < 5:
i += 5 i += 1
results = yield self.store.search_room( results = yield self.store.search_room(
room_id, search_term, keys, search_filter.limit() * 2, room_id, search_term, keys, search_filter.limit() * 2,
pagination_token=pagination_token, pagination_token=pagination_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