diff options
author | Erik Johnston <erikj@jki.re> | 2019-02-21 17:42:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 17:42:15 +0000 |
commit | b9d6756b1405fbebf952cd86d048637e7d1d2075 (patch) | |
tree | b6430a9b3faffa6841fbc9ea7feecdf30c252e23 /synapse/handlers/pagination.py | |
parent | Merge pull request #4701 from fistons/fix-migration-script (diff) | |
parent | Prevent crash on pagination. (diff) | |
download | synapse-b9d6756b1405fbebf952cd86d048637e7d1d2075.tar.xz |
Merge pull request #4263 from rkfg/develop
Prevent crash on pagination.
Diffstat (limited to 'synapse/handlers/pagination.py')
-rw-r--r-- | synapse/handlers/pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py index 9d257ecf31..084c1503da 100644 --- a/synapse/handlers/pagination.py +++ b/synapse/handlers/pagination.py @@ -254,7 +254,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. |