fix(notifications): stop showing notif in group chat when no mention

Fixes #10194
This commit is contained in:
Jonathan Rainville 2023-05-25 15:13:08 -04:00
parent 44ffc05077
commit 1a07b73354
1 changed files with 4 additions and 2 deletions

View File

@ -309,7 +309,9 @@ QtObject:
else: else:
if(details.isOneToOne or details.isGroupChat): if(details.isOneToOne or details.isGroupChat):
let exemptions = self.settingsService.getNotifSettingExemptions(details.chatId) let exemptions = self.settingsService.getNotifSettingExemptions(details.chatId)
if(exemptions.muteAllMessages): if exemptions.muteAllMessages or
# Don't show a notification for group messages that are NOT mentions
(details.isGroupChat and details.notificationType != NotificationType.NewMessageWithPersonalMention):
return return
if(details.notificationType == NotificationType.NewMessageWithPersonalMention and if(details.notificationType == NotificationType.NewMessageWithPersonalMention and