matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

Invites no longer appear at the expected position in the room list.

Open pixlwave opened this issue 2 months ago • 3 comments

Discovered on Element X iOS which is currently using d6d720c01529b9aadb0518ef745ed5817a216824

This invite was sent moments before taking the screenshot: Image

pixlwave avatar Sep 30 '25 10:09 pixlwave

I suspect that this invite room has no LatestEventValue. I'm trying to adjust

https://github.com/matrix-org/matrix-rust-sdk/blob/681b22142fd265e47caa9190a3f3c53997d47a10/crates/matrix-sdk/src/latest_events/latest_event.rs#L900

to see if it handles invites.

Hywan avatar Oct 01 '25 14:10 Hywan

See my comment https://github.com/matrix-org/matrix-rust-sdk/pull/5736#issuecomment-3364764120 to know why https://github.com/matrix-org/matrix-rust-sdk/pull/5736 doesn't fully fix the issue. The EventCache isn't handling invite room yet, so the LatestEventValue cannot be computed, and the invite room cannot be sorted as expected in the RoomList:

https://github.com/matrix-org/matrix-rust-sdk/blob/a4bd36cbe88ba5c5b23752ca7228e14d0566ab82/crates/matrix-sdk/src/event_cache/mod.rs#L965-L966

Hywan avatar Oct 03 '25 09:10 Hywan

I think we have the same issue when a room is just created, without any sent message, it won't appear at the top

ganfra avatar Oct 08 '25 20:10 ganfra