-
Notifications
You must be signed in to change notification settings - Fork 910
fix: try to avoid displaying duplicate server notifications in activity list #8782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: try to avoid displaying duplicate server notifications in activity list #8782
Conversation
5460d47 to
8e34d4c
Compare
| } | ||
|
|
||
| for (const auto &activity : std::as_const(toNotifyList)) { | ||
| if (toNotifyList.size() == 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this part. Why is it different if we have only 1 activity to notify about versus more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User::showDesktopNotification(const Activity &activity) will add the notification to the activity list and also display a system notification, whereas User::showDesktopNotification(const ActivityList &activityList) only ends up adding those to the activity list. It's weird.
also get rid of an unused list Signed-off-by: Jyrki Gadinger <[email protected]>
Signed-off-by: Jyrki Gadinger <[email protected]>
Signed-off-by: Jyrki Gadinger <[email protected]>
This change might clean up notifications that have already been dismissed from the web ui as well. Resolves #6624 Signed-off-by: Jyrki Gadinger <[email protected]>
8e34d4c to
b9f1467
Compare
|
Artifact containing the AppImage: nextcloud-appimage-pr-8782.zip Digest: To test this change/fix you can download the above artifact file, unzip it, and run it. Please make sure to quit your existing Nextcloud app and backup your data. |
|
/backport to stable-3.17 |
Resolves #6624
includes some cleanup in UserModel and ActivityListModel