Skip to content

Commit

Permalink
Fix display of 2FA notification.
Browse files Browse the repository at this point in the history
Fix for issue #5421: add server notifications to the activities list
when the user needs to act on it.

Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila authored and mgallien committed Mar 8, 2023
1 parent 20e20a6 commit ec7b548
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 ec7b548

Please sign in to comment.