0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-16 19:03:53 +01:00

Prevent crash on pagination.

This commit is contained in:
rkfg 2018-12-06 13:32:05 +03:00
parent 9a3e24a13d
commit ae19a7db8c
2 changed files with 2 additions and 1 deletions

1
changelog.d/4263.bugfix Normal file
View file

@ -0,0 +1 @@
Prevent crash on pagination.

View file

@ -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.