summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-11-20 19:33:45 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-11-20 19:33:45 +0000
commit5f19c55731deef0381338fcab9847f5c762a36c8 (patch)
tree6a0b7682f52962612329161bef9333603222094f /synapse/handlers
parentFix pep8 and pyflakes warnings (diff)
downloadsynapse-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 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py2
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: