mirror of
https://github.com/paul-nameless/tg
synced 2025-02-16 10:38:23 +00:00
Fix notification: do not notify if char archived and muted
This commit is contained in:
parent
3ad084f3db
commit
66271218b2
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…
Add table
Reference in a new issue