-
-
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
Disappearing custom relation events after restarting client or initial sync #27132
Comments
Have you looked at the sync responses to confirm this? Just because another client gets them doesn't mean the server sent them the same data. Please provide a sample of event IDs to correlate in your logs for the missing events. |
No, I'm not sure what I'd be looking at/for?
The "spiritsail" one in the screenshot above is |
Not this second, but I've pulled the event from the server over federation from another server I have access to right now:
|
This is likely causing the issue |
Ah, I see. Is the problem that @tulir's echo plugin uses custom relations, or is the problem that Element Web filters them out? |
Neither, its a bug in some assumptions the matrix-js-sdk makes The spec says the unknown relation should be ignored
|
The code today considers the relation and tries to find the parent event - |
This should be it:
|
So I guess the issue here boils down to that parent event not being available to the client at the time the relation is loaded and the code isn't asynchonously loading the parent of every event with a relation as this is not needed for all specced relation types (e.g. threads, replies, edits, reactions) as this would increase server load substantially. Definitely something that needs fixing but unlikely to get any attention from the team given the edge case. EA not having this issue is because it dumps all events in the main timeline by default, but this is a common cause of stuck notifications (in cases other than this one) |
I see, so do you think this is a problem with Conduit not providing events in the correct order when doing a full sync? I agree it'd be nice if Element Web didn't have this problem, but if the problem is that the server's not providing events in the correct order (so the parent arrives after the child) then I can look at possible patches on the server side to mitigate this in the meantime. |
No, more likely the event is just outside the page of events provided in the sync Ideally this would be solved by the parent event being provided via unsigned so the client always knew the parent event but that would need spec work |
What other information would you think might be helpful here? I'd like this resolved as well. |
What usecases warrant these non-standard relations for better informed triage |
The It sounds like "fixing" this would require quite a lot of work, but would it be feasible to offer a I just tested this working by overriding the limit value to 50 in Nginx so it pulls back enough events to be able to resolve the relation:
With this in place, Element Web now shows all of the missing events, but this workaround is just a pretty messy hack to demonstrate that it would resolve it. |
It has nothing to do with them being
The limit is configurable via config.json only |
Sorry, I misspoke. It seems these types of relations are used whenever Maubot replies to a user, and Maubot is one of the most commonly used bot frameworks in Matrix, so while I don't have specific numbers, it would be quite common.
Excellent. I'll look at running my own build to mitigate this issue for now, thanks. |
Do you know why maubot doesn't use actual replies as would be semantically accurate? |
They're pongs, not replies. Only used by echo bots mostly in ping rooms though, not any other bots. Rendering replies would take even more space in the UI and there's no reason for them to be replies |
Steps to reproduce
When closing Element Web (I've tried app.element.io and develop.element.io) or clearing cache, the
m.notice
messages seem to disappear.Here is a screenshot of an example ping test I just ran in the #ping-no-synapse:maunium.net room:
Then how the room looks after clearing the cache in client to perform an initial sync:
I've also tried using /devtools to show all hidden messages and there's simply no trace of these missing
m.notice
messages. I'm confident it's not a server issue as this behaviour doesn't occur in Element Android or other clients.Outcome
Expected outcome is that rooms would appear roughly the same after restarting client or clearing cache as they did beforehand.
Operating system
Microsoft Windows 11 Pro 23H2 (22631.3235)
Browser information
Microsoft Edge 122.0.2365.66 (Official build) (64-bit)
URL for webapp
develop.element.io
Application version
Element version: f01d69f-react-942fabc5a8fe-js-7fee37680f33 Crypto version: Rust SDK 0.7.0 (b1918e9), Vodozemac 0.5.1
Homeserver
doctoruwu.uk
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: