summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-09-05 16:24:14 +0100
committerGitHub <noreply@github.com>2018-09-05 16:24:14 +0100
commitdfba1d843db24ee56026845f51f021025b9aa8f0 (patch)
tree2bfbd1d329289acf495259034b93baa2ee75163d /synapse/api
parentPort http/ to Python 3 (#3771) (diff)
parentchangelog (diff)
downloadsynapse-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.py1
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),)