mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
parent
2608016995
commit
e66135a59a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user