-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Receipt for a redaction within a thread is sent to the main thread #26363
Comments
If an event is redacted its relation is also removed so it loses its thread-ness
|
OK, that explains why when I change this behaviour, Synapse complains that it doesn't think the reaction is within that thread. So I think this means that when Element Web sees a redaction of a message within a thread, it should move that message out of the thread's timeline and place it in the main timeline. Then we would not consider that redacted message or its redaction to be in the thread, so we wouldn't try to send threaded receipts for it. What do you think @t3chguy ? If so, we still need to insert it into the main timeline, and I'm not at all sure where. I think we can only guess based on timestamp (again). |
I think the spec should offer an explanation on how clients are expected to handle this so we don't build Synapse-specific behaviours which break on Conduit, Dendrite etc |
Which part is ambiguous? |
How to handle thread reply redactions more broadly, as things moving between timelines inconsistently seems bad. Equally events vanishing from timelines without a marker of where they used to be also seems quite bad |
Yes, in this scenario:
Now the latest receipt for the thread refers to a message (InThread1) which is no longer part of the thread. |
Ignoring receipts entirely, it means messages vanish from threads and appear in the main timeline. They look like redactions in the main timeline which is confusing and arguably incorrect. |
So would you propose to preserve relations when events are redacted? I.e. update the redaction algorithm to say that |
It would require a new room version, I suggest raising this with the SCT |
So this is not a bug. Closing in favour of #26366 |
Part of #24392 (Stuck Notifications)
(Found while debugging "Reading an unread thread after a redaction of the latest message makes it read" inside
cypress/e2e/read-receipts/redactions.spec.ts
.)When I open an unread thread where the last message was a redaction of a message within that thread, I see this request in the Network tab in my browser:
which is incorrect, because the redaction event happened within the thread, so we should be sending a body of:
The text was updated successfully, but these errors were encountered: