mirror of
https://github.com/paul-nameless/tg
synced 2024-11-25 13:20:25 +00:00
commit
bedccb9eb9
1 changed files with 4 additions and 1 deletions
|
@ -499,9 +499,12 @@ class Controller:
|
|||
for chat in self.model.chats.chats:
|
||||
if chat_id == chat["id"]:
|
||||
break
|
||||
else:
|
||||
# chat not found, do not notify
|
||||
return
|
||||
|
||||
# TODO: handle cases when all chats muted on global level
|
||||
if chat and chat["notification_settings"]["mute_for"]:
|
||||
if chat["notification_settings"]["mute_for"]:
|
||||
return
|
||||
|
||||
# notify
|
||||
|
|
Loading…
Reference in a new issue