Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix notification count after a highlighted message - #13223

Merged
erikjohnston merged 2 commits into
developfrom
erikj/fix_highlight_counts
Jul 8, 2022
Merged

erikjohnston merged 2 commits into
developfrom
erikj/fix_highlight_counts

Conversation

@erikjohnston

@erikjohnston erikjohnston commented Jul 8, 2022 •

Copy link
Copy Markdown
Member

The crux of the problem was that when we rotated the notifications we didn't filter out read-but-highlighted messages. This only affected highlights as we delete non-highlights after they're read.

Fixes #13196

Broke by #13005

@erikjohnston
erikjohnston marked this pull request as ready for review July 8, 2022 11:12
@erikjohnston
erikjohnston requested a review from a team as a code owner July 8, 2022 11:12
Comment thread synapse/storage/databases/main/event_push_actions.py
Comment thread tests/storage/test_event_push_actions.py
@erikjohnston
erikjohnston requested a review from DMRobertson July 8, 2022 11:47

@DMRobertson DMRobertson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for explaining.

@erikjohnston
erikjohnston merged commit 757bc0c into develop Jul 8, 2022
@erikjohnston
erikjohnston deleted the erikj/fix_highlight_counts branch July 8, 2022 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unread count keeps showing up for some rooms

2 participants