diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-10-27 11:26:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 11:26:30 -0400 |
commit | 19d5dc69316a28035caf6a6519ad8a116023de81 (patch) | |
tree | 1ddb638911f8c547b9aac0f18aba1eab9173315c /synapse/handlers/pagination.py | |
parent | Delete messages from `device_inbox` table when deleting device (#10969) (diff) | |
download | synapse-19d5dc69316a28035caf6a6519ad8a116023de81.tar.xz |
Refactor `Filter` to handle fields according to data being filtered. (#11194)
This avoids filtering against fields which cannot exist on an event source. E.g. presence updates don't have a room.
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 60ff896386..abfe7be0e3 100644 --- a/synapse/handlers/pagination.py +++ b/synapse/handlers/pagination.py @@ -438,7 +438,7 @@ class PaginationHandler: } state = None - if event_filter and event_filter.lazy_load_members() and len(events) > 0: + 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. |