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

Incorrect unread_notifications with some push rules #18111

Open
HarHarLinks opened this issue Jan 27, 2025 · 0 comments
Open

Incorrect unread_notifications with some push rules #18111

HarHarLinks opened this issue Jan 27, 2025 · 0 comments

Comments

@HarHarLinks
Copy link
Contributor

Description

With certain push rules set up, synapse does not increment the unread_notifications in the same /sync that receives the event triggering the push rule, violating the spec requirement

The updated notification count from a new event MUST appear in the same /sync response as the event itself.

Steps to reproduce

  • create 3 accounts in an element web + synapse + mas setup
  • log into all 3
  • enable bob's desktop notifications
  • create a room between kim and bob
  • note bob's access token
  • use playground.matrix.org to add a notify action to bob's .m.rule.member_event, confirm via playground and element devtools. see attachment.
  • watch bob's element's `/sync' via browser devtools
  • kim invites charlie
  • check the /sync response, see attachment.
  • (check the notification logging)

push_rules.json
sync.json

Homeserver

localhost

Synapse Version

synapse 1.122

Installation Method

Docker (matrixdotorg/synapse)

Database

fresh postgres 16 container

Workers

Single process

Platform

docker

Configuration

default

Relevant log output

🤷

Anything else that would be useful to know?

No response

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

No branches or pull requests

1 participant