daemon: Remove numeric filters properly.

This commit is contained in:
Damir Jelić 2019-03-28 17:08:58 +01:00
parent 237f35af0a
commit a1fadbb867

View File

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