Skip to content

Commit

Permalink
Merge pull request #5486 from nextcloud/bugfix/5421
Browse files Browse the repository at this point in the history
Fix display of 2FA notification.
  • Loading branch information
mgallien authored Mar 8, 2023
2 parents 20e20a6 + ec7b548 commit 30cfba4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ void User::showDesktopNotification(const Activity &activity)
{
const auto notificationId = activity._id;
const auto message = AccountManager::instance()->accounts().count() == 1 ? "" : activity._accName;

// the user needs to interact with this notification
if (activity._links.size() > 0) {
_activityModel->addNotificationToActivityList(activity);
}

showDesktopNotification(activity._subject, message, notificationId);
}

Expand Down

0 comments on commit 30cfba4

Please sign in to comment.