diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-09-04 15:18:25 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-09-04 15:20:09 +0100 |
commit | 87c18d12ee30c84a108ac686454720d6ac6a2f84 (patch) | |
tree | a47e90833c5d809b942a090c5a5c8e797bbba18f /synapse/api | |
parent | Fix tests on postgresql (#3740) (diff) | |
download | synapse-87c18d12ee30c84a108ac686454720d6ac6a2f84.tar.xz |
Implement 'event_format' filter param in /sync
This has been specced and part-implemented; let's implement it for /sync (but no other endpoints yet :/).
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),) |