]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Fix display of 2FA notification.
authorCamila <hello@camila.codes>
Tue, 28 Feb 2023 17:24:00 +0000 (18:24 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 8 Mar 2023 09:53:51 +0000 (10:53 +0100)
Fix for issue #5421: add server notifications to the activities list
when the user needs to act on it.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/usermodel.cpp

index a057248ce0f289d4a622d2b419dfa468b68e70a5..5c6f24e5f3ae0491fd0b3ffd4d48c60bb3b36f17 100644 (file)
@@ -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);
 }