Skip to content

Commit

Permalink
Remove unneeded check for DnD status when showing desktop talk notifi…
Browse files Browse the repository at this point in the history
…cation

The server will not deliver it anyway

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Nov 21, 2024
1 parent 2608016 commit e66135a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e66135a

Please sign in to comment.