Skip to content
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

Merge duplicate notifications #278

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jedrzejboczar
Copy link

@jedrzejboczar jedrzejboczar commented Jun 12, 2024

Sometimes it happens that the same notification is displayed multiple times, usually due to some buggy callback. In such scenario, instead of displaying multiple duplicate notifications, they just replace the initial one. Renderers can use #notif.duplicates to display duplicates count.

Specifying merge_duplicates as integer works as minimal duplicates count, but the way it is implemented right now may give somewhat unexpected result - it will replace only one of the previous notifications, but renderer will display total different duplicate counts on all, so overall duplicate count is not the sum of displayed ones. If this is unwanted then we may just remove option to use integer.

Example with the default renderer and merge_duplicates = true:

merge_duplicates.mp4

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.

1 participant