Skip to content

Commit

Permalink
Only notify talk chat notifications if this is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Feb 13, 2023
1 parent d77d6f1 commit b5a132c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ void User::showDesktopTalkNotification(const Activity &activity)
{
const auto notificationId = activity._id;

if (!canShowNotification(notificationId)) {
const ConfigFile cfg;
const auto userStatus = _account->account()->userStatusConnector()->userStatus().state();
if (!canShowNotification(notificationId) ||
userStatus == OCC::UserStatus::OnlineStatus::DoNotDisturb ||
!cfg.showChatNotifications()) {

return;
}

Expand Down

0 comments on commit b5a132c

Please sign in to comment.