Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-07-13 17:13:28 +0300
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-07-25 14:15:50 +0300
commit7a78f2b19f15e4d69a30c8fad5ee607f15f6944a (patch)
tree39c138076dcb157e369b93e8f37ed8be2c0817b9 /src/gui/tray
parentcf72f460abb723240639e0f71d6e7bd13b266aa8 (diff)
Ensure that throttled notifications still appear in tray activity model
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
Diffstat (limited to 'src/gui/tray')
-rw-r--r--src/gui/tray/usermodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp
index 8ec34a8a8..27e9b3bd8 100644
--- a/src/gui/tray/usermodel.cpp
+++ b/src/gui/tray/usermodel.cpp
@@ -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);
}