// Set these activities as notified here, rather than in showDesktopNotification
for(const auto &activity : toNotifyList) {
_notifiedNotifications.insert(activity._id);
+ _activityModel->addNotificationToActivityList(activity);
}
return;
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);
}