element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Messages not being marked as read after latest update

Open Nostramadeus opened this issue 8 months ago • 16 comments

Steps to reproduce

  1. Where are you starting? What can you see? Any state. I can see notifications (either a green dot on threads or a number in a circle by a room)
  2. What do you click? On a thread or on a room and I scroll to the very bottom.

Outcome

What did you expect?

The green dot by a thread or number in a circle by a room to disappear.

What happened instead?

Messages (rooms, and threads) are not being marked as read even when I click in them and scroll to the very bottom. I think even clicking the three dots menu and clicking "Mark as read" does nothing.

Another user has confirmed this as well.

Operating system

Windows

Application version

Element version: 1.11.97

How did you install the app?

From element.io/get-started

Homeserver

matrix.org

Will you send logs?

No

Nostramadeus avatar Apr 16 '25 14:04 Nostramadeus

I can confirm this issue is present on 1.11.99 and 1.11.89 also, not sure if helpful but I noticed Cinny does not have this issue https://cinny.in/

OWheele avatar Apr 24 '25 16:04 OWheele

Confirming this issue happening. For me it has started happening only after I select SSS in labs.

escix avatar Apr 25 '25 08:04 escix

Will you send logs? No

Without logs there is nothing to look at here

t3chguy avatar Apr 25 '25 08:04 t3chguy

I sent through the logs for issue 29801

Hopefully it has some info related to this issue too.

escix avatar Apr 25 '25 09:04 escix

@escix thanks but you are not the reporter, it is their logs we need. Then any further reports we can confirm they are the same issue if their logs are included.

t3chguy avatar Apr 25 '25 09:04 t3chguy

I have made a rageshake, the issue seems to be present on Element Web also.

OWheele avatar Apr 25 '25 09:04 OWheele

@escix thanks but you are not the reporter, it is their logs we need. Then any further reports we can confirm they are the same issue if their logs are included.

Noted 👍

escix avatar Apr 25 '25 09:04 escix

Please can I note that the issue is on both Element Desktop and Element Web, the issue is not exclusive to either method of accessing Element.

I can also now confirm that the reading of messages is not instant on Element X on Android either.

OWheele avatar Apr 25 '25 10:04 OWheele

All submitted logs so far point to this being a matrix.org infrastructure issue, rather than an Element Web/Desktop issue. Impact on Element X may be different as it uses SSS & separately does not rely on server unread counts

t3chguy avatar Apr 25 '25 10:04 t3chguy

All submitted logs so far point to this being a matrix.org infrastructure issue, rather than an Element Web/Desktop issue. Impact on Element X may be different as it uses SSS & separately does not rely on server unread counts

I am inclined to disagree, when using Cinny, messages show as read instantly using the same matrix.org infrastructure. I think Element needs to be able to properly queue requests to mark messages as read on the server and the client should pre-emptively mark the message as read once the request has been sent to a queue before the server has even responded, I'm guessing that's what Cinny does.

OWheele avatar Apr 25 '25 12:04 OWheele

I've noticed over the last few days that the read notifications disappearing are tied to the server speed, some days it has been near enough instant and others it takes some time. Would it be possible to ensure that read notifications are processed on the client side rather than solely sending and receiving requests to the server to determine whether a chat or room has been read? This would alleviate the issue.

The ability to mark all messages as unread would be quite helpful too, the Matrix client I mentioned in my previous comment Cinny is able to do this, I find it helpful as I'm a part of lots of rooms I don't always need to participate in.

OWheele avatar May 06 '25 15:05 OWheele

I've sent a rageshake from my account on element.io for this issue.

anoadragon453 avatar Jun 11 '25 09:06 anoadragon453

@anoadragon453 I can definitely see m.read API hits for the room you're having issue with

2025-06-11T09:32:02.450Z D FetchHttpApi: --> POST https://element.ems.host/_matrix/client/v3/rooms/<room_id>/receipt/m.read/<event_id>

They are all for event with ID %24sjAJqPnh7YEZ4JtWJOMgtji3Qb2p9Z18z7g2tzxXXRY - do you know which event that is in relation to the head of the timeline?

t3chguy avatar Jun 11 '25 09:06 t3chguy

@t3chguy how would I find that out from my Element Desktop client? Also why does it have a % prefix? Does that imply a local event that hasn't yet got an event ID from the homeserver?

anoadragon453 avatar Jun 11 '25 09:06 anoadragon453

@anoadragon453 url encoding, my bad $sjAJqPnh7YEZ4JtWJOMgtji3Qb2p9Z18z7g2tzxXXRY

I suggest not trying from Element given if there is a bug with message ordering/similar then we would not be seeing under it by doing so

t3chguy avatar Jun 11 '25 09:06 t3chguy

That would be a membership join event:

{
  "content": {
    "avatar_url": "mxc://xeon-e5.vcpu.hu/VcEOEhTjaIjpfizIpfcxLZod",
    "displayname": "Rubben",
    "membership": "join"
  },
  "origin_server_ts": 1749593794496,
  "sender": "@rubben:xeon-e5.vcpu.hu",
  "state_key": "@rubben:xeon-e5.vcpu.hu",
  "type": "m.room.member",
  "unsigned": {
    "replaces_state": "$v-p0LJ7pEvRJMKxpwIub_Zm3dWCLSkmz9UU5ZK0qyfc",
    "prev_content": {
      "avatar_url": "mxc://xeon-e5.vcpu.hu/VcEOEhTjaIjpfizIpfcxLZod",
      "displayname": "Rubben 🇨🇳",
      "membership": "join"
    },
    "prev_sender": "@rubben:xeon-e5.vcpu.hu",
    "membership": "join"
  },
  "event_id": "$sjAJqPnh7YEZ4JtWJOMgtji3Qb2p9Z18z7g2tzxXXRY",
  "room_id": "!itCOeHerJPucwbZJDz:element.io"
}

which in my client's timeline is the latest event.

I'm waiting for an internal process to clear before I can give you information on the homeserver's view of the timeline...

anoadragon453 avatar Jun 11 '25 14:06 anoadragon453

@anoadragon453 is the process cleared yet?

t3chguy avatar Nov 11 '25 14:11 t3chguy