bug: Thread replies don't show up live in Element because v1.10 isn't advertised #2350

Open
opened 2026-10-12 10:04:16 +00:00 by sergejsoller · 1 comment

What is the bug?

We run a bot that answers in threads. While it works, it edits a status message a few times ("thinking…", "done"), then posts its reply. In Element Desktop, the reply never shows up in the open thread. I have to close the thread and open it again to see it. The thread summary in the main timeline does show the reply right away, so sync is fine.

I dug into it, and I think the cause is that /versions doesn't list v1.10. It goes from v1.8 straight to v1.11. matrix-js-sdk checks for exactly "v1.10" (or the org.matrix.msc3981 flag) to decide whether the server supports recursive relations. Since neither is there, it falls back to a workaround: edits and reactions in a thread get inserted as "not live" events. The open thread view skips those and then only moves forward one event per new message, so it falls behind and the actual reply stays hidden.

Continuwuity does support recurse on /relations (it's ticked in #880), so this looks like it's only a matter of advertising it.

Steps to reproduce

  1. Open a thread in Element (unencrypted room) and keep it open.
  2. Have another user (in our case a bot) edit a message in that thread a few times, then send a new reply.
  3. The reply doesn't appear in the open thread. Reopening the thread shows it.

To confirm, I ran this in Element's devtools console:

mxMatrixClientPeg.get().canSupport.get("RelationsRecursion") // 2 = unsupported
mxMatrixClientPeg.get().canSupport.set("RelationsRecursion", 0) // pretend it's supported

After that and reopening the thread, replies showed up live as expected.

Server name and version

v26.9.1 (046074b). versions.rs looks the same on main.

Additional context

The simplest fix I can see is adding "v1.10" to versions() in src/core/matrix/versions.rs. According to #880, the only v1.10 item missing is MSC4025, and v1.11 is already listed even though not everything is done there.

The org.matrix.msc3981 flag would also fix the display issue. But then Element sends the parameter as org.matrix.msc3981.recurse, which I don't think ruma accepts, so recursion would quietly be off.

### What is the bug? We run a bot that answers in threads. While it works, it edits a status message a few times ("thinking…", "done"), then posts its reply. In Element Desktop, the reply never shows up in the open thread. I have to close the thread and open it again to see it. The thread summary in the main timeline does show the reply right away, so sync is fine. I dug into it, and I think the cause is that `/versions` doesn't list `v1.10`. It goes from `v1.8` straight to `v1.11`. matrix-js-sdk checks for exactly `"v1.10"` (or the `org.matrix.msc3981` flag) to decide whether the server supports recursive relations. Since neither is there, it falls back to a workaround: edits and reactions in a thread get inserted as "not live" events. The open thread view skips those and then only moves forward one event per new message, so it falls behind and the actual reply stays hidden. Continuwuity does support `recurse` on `/relations` (it's ticked in #880), so this looks like it's only a matter of advertising it. ### Steps to reproduce 1. Open a thread in Element (unencrypted room) and keep it open. 2. Have another user (in our case a bot) edit a message in that thread a few times, then send a new reply. 3. The reply doesn't appear in the open thread. Reopening the thread shows it. To confirm, I ran this in Element's devtools console: ``` mxMatrixClientPeg.get().canSupport.get("RelationsRecursion") // 2 = unsupported mxMatrixClientPeg.get().canSupport.set("RelationsRecursion", 0) // pretend it's supported ``` After that and reopening the thread, replies showed up live as expected. ### Server name and version v26.9.1 (046074b). `versions.rs` looks the same on `main`. ### Additional context The simplest fix I can see is adding `"v1.10"` to `versions()` in `src/core/matrix/versions.rs`. According to #880, the only v1.10 item missing is MSC4025, and v1.11 is already listed even though not everything is done there. The `org.matrix.msc3981` flag would also fix the display issue. But then Element sends the parameter as `org.matrix.msc3981.recurse`, which I don't think ruma accepts, so recursion would quietly be off.
Owner

v1.11 being listed despite not being 100% supported is because matrix clients won't use authenticated media otherwise, so the service would end up being pretty largely degraded - this is a practical exception. I think local account erasure would be easy enough to implement that making a similar exception would be unnecessary.

Annoyingly, msc3981 doesn't describe a stable unstable flag, so we can't just advertise the stable version of the proposal, and either have to backport unstable changes to ruma, or advertise v1.10 altogether. I suspect it'll be more beneficial to just support local erasure and then declare v1.10

v1.11 being listed despite not being 100% supported is because matrix clients won't use authenticated media otherwise, so the service would end up being pretty largely degraded - this is a practical exception. I think local account erasure would be easy enough to implement that making a similar exception would be unnecessary. Annoyingly, msc3981 doesn't describe a stable unstable flag, so we can't just advertise the stable version of the proposal, and either have to backport unstable changes to ruma, or advertise v1.10 altogether. I suspect it'll be more beneficial to just support local erasure and then declare v1.10
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity#2350
No description provided.