SYN-58: Allow passing explicit limit=0 to initialSync to request no messages at all; missing still implies default 10

This commit is contained in:
Paul "LeoNerd" Evans 2014-11-20 19:33:45 +00:00
parent 610c2ea131
commit 5f19c55731
2 changed files with 7 additions and 7 deletions

View file

@ -243,7 +243,7 @@ class MessageHandler(BaseHandler):
public_room_ids = [r["room_id"] for r in public_rooms]
limit = pagin_config.limit
if not limit:
if limit is None:
limit = 10
for event in room_list: