-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Stuck unread with reaction + start thread #24394
Comments
I have investigated this issue and here are a few thoughts that I'm writing down so that this does not get lost. I have not yet managed to write a fix for this, and this will probably happen over a handful of pull requests The fundamental issue causing this bug is that we do not insert the events in the thread timeline in the order of the DAG Events related to the thread root should be ignored when sending read receipts from a thread timelineThread events are paginated from the This is problematic as the timeline code only inspects the last event of a thread and sends a read receipt against that event. Instead the logic should inspect the events from most recent to oldest until it find a suitable one.
|
@gsouquet and I talked a bit about this in a DM, but wanted to iterate on it here.
This shouldn't be necessary, part of MSC3771 was written so clients could send a receipt which they think is part of a thread and it should most likely work:
Using the example from the MSC: flowchart RL
subgraph "Main" timeline
B-->A
I-->B
end
subgraph Thread A timeline
C-->A
E-->C
G-.->|m.reaction|C
H-.->|m.edit|E
end
subgraph Thread B timeline
D-->B
F-->D
end
It should be possible to send receipts on events There is some subtly though -- in the case where the reaction (or any non- |
@gsouquet is it correct, that this issue also covers message edits in threads? |
the symptoms appear a bit more often with reactions, but also with edits. The issue occurs when they end up out of order compared to the real order that synapse holds. I'm working on a fix at the moment |
Steps to reproduce
Outcome
What did you expect?
Unread count cleared
What happened instead?
Stuck with (1) unread for the room as user A
Operating system
No response
Browser information
Seems unrelated, happens on Desktop + Web
URL for webapp
No response
Application version
Element Nightly version: 2023013101 Olm version: 3.2.12
Homeserver
No response
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: