Ensure that throttled notifications still appear in tray activity model
authorClaudio Cambra <claudio.cambra@gmail.com>
Wed, 13 Jul 2022 14:13:28 +0000 (16:13 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 25 Jul 2022 12:09:07 +0000 (12:09 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/tray/usermodel.cpp

index 8953c4210e9a17eb33a9a916f5f263c67f38d981..86ac169c9d7dda157f113b11b48f7746fc79abcf 100644 (file)
@@ -138,6 +138,7 @@ void User::slotBuildNotificationDisplay(const ActivityList &list)
         // Set these activities as notified here, rather than in showDesktopNotification
         for(const auto &activity : toNotifyList) {
             _notifiedNotifications.insert(activity._id);
+            _activityModel->addNotificationToActivityList(activity);
         }
 
         return;
@@ -146,6 +147,7 @@ void User::slotBuildNotificationDisplay(const ActivityList &list)
     for(const auto &activity : toNotifyList) {
         const auto message = activity._objectType == QStringLiteral("chat")
             ? activity._message : AccountManager::instance()->accounts().count() == 1 ? "" : activity._accName;
+
         showDesktopNotification(activity._subject, message, activity._id); // We assigned the notif. id to the activity id
         _activityModel->addNotificationToActivityList(activity);
     }