镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[stable29] fix(browser): Don't create web notifications for old notifications - #1945

Merged
nickvergessen merged 2 commits into
stable29from
backport/1943/stable29
Jun 10, 2024
Merged

nickvergessen merged 2 commits into
stable29from
backport/1943/stable29

Conversation

@backportbot

@backportbot backportbot Bot commented Jun 10, 2024 •

Copy link
Copy Markdown

Backport of #1943

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sometimes a notification got "newly mounted" while being old.
This can happen when a user has many notifications (100-1).
The UI first only loads (100-76), if any notification is then
resolved (e.g. by deleting or reading a chat), further old
notifications (75+74) would be added to the UI and triggered
a web notification (including call sound) in the past.

This threshold ID is therefore updated to only higher values,
before each pulling of notifications to ensure that we only ever
web-notify on new notifications and not newly loaded old
notifications.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen

Copy link
Copy Markdown
Member

/compile /

@nickvergessen
nickvergessen enabled auto-merge June 10, 2024 12:38
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nickvergessen
nickvergessen merged commit 40b48c7 into stable29 Jun 10, 2024
@nickvergessen
nickvergessen deleted the backport/1943/stable29 branch June 10, 2024 12:47
@blizzz blizzz mentioned this pull request Jun 11, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants