mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
Ensure that throttled notifications still appear in tray activity model
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
parent
cf72f460ab
commit
7a78f2b19f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue