This commit is contained in:
Erik Johnston 2016-09-17 14:59:40 +01:00
parent 71edaae981
commit a298331de4
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class RoomListHandler(BaseHandler):
rooms_to_scan = rooms_to_scan[:since_token.current_limit] rooms_to_scan = rooms_to_scan[:since_token.current_limit]
rooms_to_scan.reverse() rooms_to_scan.reverse()
# If there's not search filter just limit the range since we'll # If there's no search filter just limit the range since we'll
# return the vast majority of things. # return the vast majority of things.
if limit and not search_filter: if limit and not search_filter:
rooms_to_scan = rooms_to_scan[:limit + 1] rooms_to_scan = rooms_to_scan[:limit + 1]