diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-20 15:33:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-20 15:33:25 +0100 |
commit | 45cd2b023399dc79a77cf59a356ed1c130d970d2 (patch) | |
tree | 32ba73ab45fcf4d31a909d60dc34f6bb3f785891 /synapse/rest/client/v2_alpha/sync.py | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-45cd2b023399dc79a77cf59a356ed1c130d970d2.tar.xz |
Refactor api.filtering to have a Filter API
Diffstat (limited to 'synapse/rest/client/v2_alpha/sync.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py index fffecb24f5..5e27a859f9 100644 --- a/synapse/rest/client/v2_alpha/sync.py +++ b/synapse/rest/client/v2_alpha/sync.py @@ -23,7 +23,7 @@ from synapse.types import StreamToken from synapse.events.utils import ( serialize_event, format_event_for_client_v2_without_event_id, ) -from synapse.api.filtering import Filter +from synapse.api.filtering import FilterCollection from ._base import client_v2_pattern import copy @@ -103,7 +103,7 @@ class SyncRestServlet(RestServlet): user.localpart, filter_id ) except: - filter = Filter({}) + filter = FilterCollection({}) sync_config = SyncConfig( user=user, |