mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
daemon: Remove numeric filters properly.
This commit is contained in:
parent
237f35af0a
commit
a1fadbb867
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user