daemon: Remove numeric filters from the sync request.

This commit is contained in:
Damir Jelić 2019-03-27 14:13:05 +01:00
parent cb85544ff9
commit ad641f2a42

View File

@ -198,7 +198,9 @@ class ProxyDaemon:
try: try:
sync_filter = json.loads(sync_filter) sync_filter = json.loads(sync_filter)
except (JSONDecodeError, TypeError): except (JSONDecodeError, TypeError):
pass # If the client is using a numeric filter, remove it since we don't
# know yet what the filter contains.
sync_filter = None
# TODO edit the sync filter to not filter encrypted messages # TODO edit the sync filter to not filter encrypted messages
# TODO do the same with an uploaded filter # TODO do the same with an uploaded filter