From ad641f2a4269e8ccd116ec2d8f36c8ff465efdcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 27 Mar 2019 14:13:05 +0100 Subject: [PATCH] daemon: Remove numeric filters from the sync request. --- pantalaimon/daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index 30086bd..452ff6a 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -198,7 +198,9 @@ class ProxyDaemon: try: sync_filter = json.loads(sync_filter) 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 do the same with an uploaded filter