diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-03-19 01:15:13 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-03-19 01:15:13 +0000 |
commit | b2f22829475ccfe19e994aedddb8d04995018bf4 (patch) | |
tree | 50fa07b8bf2fe11a1e42d2e70e540937f500c756 /synapse/api | |
parent | reshuffle todo & comments (diff) | |
download | synapse-b2f22829475ccfe19e994aedddb8d04995018bf4.tar.xz |
make lazy_load_members configurable in filters
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/filtering.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index 83206348e5..339e4a31d6 100644 --- a/synapse/api/filtering.py +++ b/synapse/api/filtering.py @@ -260,6 +260,9 @@ class FilterCollection(object): def ephemeral_limit(self): return self._room_ephemeral_filter.limit() + def lazy_load_members(self): + return self._room_state_filter.lazy_load_members() + def filter_presence(self, events): return self._presence_filter.filter(events) @@ -416,6 +419,9 @@ class Filter(object): def limit(self): return self.filter_json.get("limit", 10) + def lazy_load_members(self): + return self.filter_json.get("lazy_load_members", False) + def _matches_wildcard(actual_value, filter_value): if filter_value.endswith("*"): |