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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user