diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-09-05 16:24:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 16:24:14 +0100 |
commit | dfba1d843db24ee56026845f51f021025b9aa8f0 (patch) | |
tree | 2bfbd1d329289acf495259034b93baa2ee75163d /synapse/api | |
parent | Port http/ to Python 3 (#3771) (diff) | |
parent | changelog (diff) | |
download | synapse-dfba1d843db24ee56026845f51f021025b9aa8f0.tar.xz |
Merge pull request #3790 from matrix-org/rav/respect_event_format_in_filter
Implement 'event_format' filter param in /sync
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/filtering.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index 186831e118..a31a9a17e0 100644 --- a/synapse/api/filtering.py +++ b/synapse/api/filtering.py @@ -251,6 +251,7 @@ class FilterCollection(object): "include_leave", False ) self.event_fields = filter_json.get("event_fields", []) + self.event_format = filter_json.get("event_format", "client") def __repr__(self): return "<FilterCollection %s>" % (json.dumps(self._filter_json),) |