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

DM keeps being marked as unread on launch #23948

Closed
Johennes opened this issue Dec 9, 2022 · 1 comment
Closed

DM keeps being marked as unread on launch #23948

Johennes opened this issue Dec 9, 2022 · 1 comment
Labels

Comments

@Johennes
Copy link
Contributor

Johennes commented Dec 9, 2022

Steps to reproduce

  1. From another client invite the user into a new DM

Screenshot 2022-12-09 at 11 01 10

  1. The DM invite occurs for the invited user

Screenshot 2022-12-09 at 11 01 25

  1. Accept it and notice how the red "!" badge turns into a grey "1" badge (even though I'm already looking at the room)

Screenshot 2022-12-09 at 11 01 50

  1. Navigate to another room and back and notice how the grey "1" badge is cleared

Screenshot 2022-12-09 at 11 01 58

  1. Reload the page and notice how the room is flagged with a grey "1" badge again. This repeats on every reload.

Screenshot 2022-12-09 at 11 02 06

I took a very brief look into the code and it seemed as if the unread count came from a cached /sync response on launch.

"unread_notifications": {
  "highlight_count": 0,
  "notification_count": 1

Outcome

What did you expect?

The room should not be marked unread after having cleared notifications since there were no new events.

What happened instead?

The room continued being marked as unread on every relaunch.

Operating system

macOS

Application version

develop branch 2022-12-09

How did you install the app?

ran locally

Homeserver

matrix.org (invitee) / element.io (inviter) (but I have seen the same issue with the invitee being on element.io and the inivter on another server)

Will you send logs?

No

@germain-gg
Copy link
Contributor

Duplicate of #23685

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants