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)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 25 Jul 2022 11:15:50 +0000 (13:15 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/tray/usermodel.cpp

index 8ec34a8a833eb5b3648fd07b02d1e374c5b1f7ee..27e9b3bd89fd93c5217a536e09bc7b3c6ad84587 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);
     }