Skip to content

Conversation

@nilsding
Copy link
Member

@nilsding nilsding commented Sep 22, 2025

Resolves #6624

includes some cleanup in UserModel and ActivityListModel

@nilsding nilsding self-assigned this Sep 22, 2025
@nilsding nilsding force-pushed the bugfix/6624/duplicate-notifications-in-activity-list branch from 5460d47 to 8e34d4c Compare September 22, 2025 12:48
@nilsding nilsding marked this pull request as ready for review September 22, 2025 12:49
@nilsding nilsding added this to the 3.18.0 milestone Sep 22, 2025
@nilsding nilsding changed the title fix: try to avoid duplicate notifications in activity list fix: try to avoid displaying duplicate server notifications in activity list Sep 22, 2025
}

for (const auto &activity : std::as_const(toNotifyList)) {
if (toNotifyList.size() == 1) {
Copy link
Collaborator

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?

Copy link
Member Author

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]>
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]>
@nilsding nilsding force-pushed the bugfix/6624/duplicate-notifications-in-activity-list branch from 8e34d4c to b9f1467 Compare September 23, 2025 11:04
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8782.zip

Digest: sha256:1a5c0f34c2afa818a5567bc155d48ac4079e3df6d9164f80d03b6cde757d85ab

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.

@mgallien mgallien merged commit 26e8d6f into master Sep 23, 2025
16 of 17 checks passed
@mgallien mgallien deleted the bugfix/6624/duplicate-notifications-in-activity-list branch September 23, 2025 11:51
@camilasan
Copy link
Member

/backport to stable-3.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Talk duplicated notifications

5 participants