Remove unneeded check for DnD status when showing desktop talk notification

The server will not deliver it anyway

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-18 16:15:31 +08:00 committed by Matthieu Gallien
parent 2608016995
commit e66135a59a

View File

@ -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;
}