bug: Thread replies don't show up live in Element because v1.10 isn't advertised #2350
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Continuwuity/Web Interface
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2350
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
/versionsdoesn't listv1.10. It goes fromv1.8straight tov1.11. matrix-js-sdk checks for exactly"v1.10"(or theorg.matrix.msc3981flag) 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
recurseon/relations(it's ticked in #880), so this looks like it's only a matter of advertising it.Steps to reproduce
To confirm, I ran this in Element's devtools console:
After that and reopening the thread, replies showed up live as expected.
Server name and version
v26.9.1 (
046074b).versions.rslooks the same onmain.Additional context
The simplest fix I can see is adding
"v1.10"toversions()insrc/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.msc3981flag would also fix the display issue. But then Element sends the parameter asorg.matrix.msc3981.recurse, which I don't think ruma accepts, so recursion would quietly be off.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