From: Claudio Cambra Date: Mon, 18 Nov 2024 08:15:31 +0000 (+0800) Subject: Remove unneeded check for DnD status when showing desktop talk notification X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~5^2~20^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e66135a59aff90a42c2ea8906edf16fd6609f60d;p=nextcloud-desktop.git Remove unneeded check for DnD status when showing desktop talk notification The server will not deliver it anyway Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index fefbe27f4..c39b1406e 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -184,12 +184,7 @@ void User::showDesktopTalkNotification(const Activity &activity) { const auto notificationId = activity._id; - const ConfigFile cfg; - const auto userStatus = _account->account()->userStatusConnector()->userStatus().state(); - if (!canShowNotification(notificationId) || - userStatus == OCC::UserStatus::OnlineStatus::DoNotDisturb || - !cfg.showChatNotifications()) { - + if (!canShowNotification(notificationId) || !ConfigFile().showChatNotifications()) { return; }