Keep invalid device tokens in logger blacklist

This commit is contained in:
JonnyWong16 2021-03-16 11:03:20 -07:00
parent d20d2b5155
commit f3bd1bb80d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -49,7 +49,6 @@ def set_temp_device_token(token=None, remove=False, add=False, success=False):
if isinstance(TEMP_DEVICE_TOKENS[token], threading.Timer):
TEMP_DEVICE_TOKENS[token].cancel()
del TEMP_DEVICE_TOKENS[token]
logger._BLACKLIST_WORDS.discard(token)
elif token not in TEMP_DEVICE_TOKENS and add:
invalidate_time = 5 * 60 # 5 minutes