From 79237ac977c20cd36baa2e19296a9543e834cf9e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 18 Nov 2024 16:15:31 +0800 Subject: [PATCH] Remove unneeded check for DnD status when showing desktop talk notification The server will not deliver it anyway Signed-off-by: Claudio Cambra --- src/gui/tray/usermodel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index 6c99235d9acba..7aa0acab59dd6 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -185,9 +185,7 @@ void User::showDesktopTalkNotification(const Activity &activity) const ConfigFile cfg; const auto userStatus = _account->account()->userStatusConnector()->userStatus().state(); - if (!canShowNotification(notificationId) || - userStatus == OCC::UserStatus::OnlineStatus::DoNotDisturb || - !cfg.showChatNotifications()) { + if (!canShowNotification(notificationId) || !cfg.showChatNotifications()) { return; }