element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
Apache License 2.0
365 stars 75 forks source link

State events appear inconsistently in room previews #2979

Open ara4n opened 1 week ago

ara4n commented 1 week ago

Steps to reproduce

@pixlwave says:

If I scroll down my list now, every room has the correct last message, but then I open any room that Amsha is in, pop back and it’s changed to show the state event for her away message.

It sounds like the all_rooms list ignores the most recent state event when updating the room preview cache, but visible_rooms doesn't? (or back-paginated history doesn't)?

Eitherway, it should be consistent.

Outcome

What did you expect?

The room preview should show a text preview of the most recent visible message in a room, or nothing at all.

Your phone model

No response

Operating system version

No response

Application version

631

Homeserver

No response

Will you send logs?

No