mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:44:52 -04:00
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 :/).
This commit is contained in:
parent
77055dba92
commit
87c18d12ee
2 changed files with 39 additions and 13 deletions
|
@ -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),)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue