summary refs log tree commit diff
path: root/synapse/handlers/pagination.py
diff options
context:
space:
mode:
authorrkfg <rkfg@rkfg.me>2018-12-06 13:32:05 +0300
committerrkfg <rkfg@rkfg.me>2018-12-06 13:32:05 +0300
commitae19a7db8c5eab43858b24453bbbb352f8b6152a (patch)
tree1ebff5810a0b8a0453261b694194af9a04d80e70 /synapse/handlers/pagination.py
parentdrop undocumented dependency on dateutil (#4266) (diff)
downloadsynapse-ae19a7db8c5eab43858b24453bbbb352f8b6152a.tar.xz
Prevent crash on pagination.
Diffstat (limited to 'synapse/handlers/pagination.py')
-rw-r--r--synapse/handlers/pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py
index 43f81bd607..f2be6c1185 100644
--- a/synapse/handlers/pagination.py
+++ b/synapse/handlers/pagination.py
@@ -253,7 +253,7 @@ class PaginationHandler(object):
         )
 
         state = None
-        if event_filter and event_filter.lazy_load_members():
+        if event_filter and event_filter.lazy_load_members() and len(events) > 0:
             # TODO: remove redundant members
 
             # FIXME: we also care about invite targets etc.