mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +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:
|
for chat in self.model.chats.chats:
|
||||||
if chat_id == chat["id"]:
|
if chat_id == chat["id"]:
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
# chat not found, do not notify
|
||||||
|
return
|
||||||
|
|
||||||
# TODO: handle cases when all chats muted on global level
|
# 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
|
return
|
||||||
|
|
||||||
# notify
|
# notify
|
||||||
|
|
Loading…
Reference in a new issue