quick fix notification settings

This commit is contained in:
Alexander Zveruk 2020-05-16 12:13:03 +03:00
parent 35ee2b58f5
commit b13588901a

View file

@ -317,11 +317,8 @@ class Controller:
if chat_id == chat["id"]:
break
if (
chat
and chat["notification_settings"]["mute_for"]
or chat["notification_settings"]["use_default_mute_for"]
):
# TODO: handle cases when all chats muted on global level
if chat and chat["notification_settings"]["mute_for"]:
return
# notify