From: Claudio Cambra Date: Wed, 13 Jul 2022 14:13:28 +0000 (+0200) Subject: Ensure that throttled notifications still appear in tray activity model X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~80^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a78f2b19f15e4d69a30c8fad5ee607f15f6944a;p=nextcloud-desktop.git Ensure that throttled notifications still appear in tray activity model Signed-off-by: Claudio Cambra --- 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); }