From a1fadbb86734910db6ea75037d64737dadeec029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 28 Mar 2019 17:08:58 +0100 Subject: [PATCH] daemon: Remove numeric filters properly. --- pantalaimon/daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index ef55e01..0ec99ab 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -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