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:
sync_filter = json.loads(sync_filter)
except (JSONDecodeError, TypeError):
# If the client is using a numeric filter, remove it since we don't
# know yet what the filter contains.
pass
if isinstance(sync_filter, int):
sync_filter = None
# TODO edit the sync filter to not filter encrypted messages