Only send PNs to chats that are unmuted (#3673)
This commit is contained in:
parent
afb9621f01
commit
fc353d5dff
|
@ -5850,6 +5850,7 @@ func (m *Messenger) pushNotificationOptions() *pushnotificationclient.Registrati
|
||||||
m.allChats.Range(func(chatID string, chat *Chat) (shouldContinue bool) {
|
m.allChats.Range(func(chatID string, chat *Chat) (shouldContinue bool) {
|
||||||
if chat.Muted {
|
if chat.Muted {
|
||||||
mutedChatIDs = append(mutedChatIDs, chat.ID)
|
mutedChatIDs = append(mutedChatIDs, chat.ID)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
if chat.Active && (chat.Public() || chat.CommunityChat()) {
|
if chat.Active && (chat.Public() || chat.CommunityChat()) {
|
||||||
publicChatIDs = append(publicChatIDs, chat.ID)
|
publicChatIDs = append(publicChatIDs, chat.ID)
|
||||||
|
|
Loading…
Reference in New Issue