mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Only notify talk chat notifications if this is enabled
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
918d79f5cd
commit
babdbd1e3e
@ -184,7 +184,12 @@ void User::showDesktopTalkNotification(const Activity &activity)
|
||||
{
|
||||
const auto notificationId = activity._id;
|
||||
|
||||
if (!canShowNotification(notificationId)) {
|
||||
const ConfigFile cfg;
|
||||
const auto userStatus = _account->account()->userStatusConnector()->userStatus().state();
|
||||
if (!canShowNotification(notificationId) ||
|
||||
userStatus == OCC::UserStatus::OnlineStatus::DoNotDisturb ||
|
||||
!cfg.showChatNotifications()) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user