diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-11-20 19:33:45 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-11-20 19:33:45 +0000 |
commit | 5f19c55731deef0381338fcab9847f5c762a36c8 (patch) | |
tree | 6a0b7682f52962612329161bef9333603222094f /synapse/handlers | |
parent | Fix pep8 and pyflakes warnings (diff) | |
download | synapse-5f19c55731deef0381338fcab9847f5c762a36c8.tar.xz |
SYN-58: Allow passing explicit limit=0 to initialSync to request no messages at all; missing still implies default 10
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 06a4e173f6..ae0fc43ca2 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -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: |