From ec7b5481d45f89bccbe2fc7cb8cd0548452c8729 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 28 Feb 2023 18:24:00 +0100 Subject: [PATCH] Fix display of 2FA notification. Fix for issue #5421: add server notifications to the activities list when the user needs to act on it. Signed-off-by: Camila --- src/gui/tray/usermodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index a057248ce0f28..5c6f24e5f3ae0 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -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); }