summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-10-27 11:26:30 -0400
committerGitHub <noreply@github.com>2021-10-27 11:26:30 -0400
commit19d5dc69316a28035caf6a6519ad8a116023de81 (patch)
tree1ddb638911f8c547b9aac0f18aba1eab9173315c /synapse/handlers/room.py
parentDelete messages from `device_inbox` table when deleting device (#10969) (diff)
downloadsynapse-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/room.py')
-rw-r--r--synapse/handlers/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index cf01d58ea1..99e9b37344 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -1173,7 +1173,7 @@ class RoomContextHandler:
         else:
             last_event_id = event_id
 
-        if event_filter and event_filter.lazy_load_members():
+        if event_filter and event_filter.lazy_load_members:
             state_filter = StateFilter.from_lazy_load_member_list(
                 ev.sender
                 for ev in itertools.chain(