element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
65 stars 11 forks source link

Show edits for the most recent visible event in roomlist preview #2416

Open ara4n opened 1 month ago

ara4n commented 1 month ago

Your use case

What would you like to do?

Room previews should show the most recent visible event in a room, including any edits to it.

Why would you like to do it?

https://github.com/element-hq/element-meta/issues/2301 meant that edits are entirely ignored when showing the room preview. As a result, if you (or anyone else) sends a message and then fixes a typo in it, the room preview will show the typo'd message.

This feels incredibly flakey, as either the user infers:

How would you like to achieve it?

Only ignore edits when calculating room previews if they apply to old events; take them into account if they apply to the most recent visible event in the room.

See https://github.com/element-hq/element-x-ios/issues/2683 for the concrete EXI bug for this.

Have you considered any alternatives?

No response

Additional context

It's unfortunate that this misbehaviour was added in Feb, and it's now May and it's still broken (perhaps due to not actually getting back on the radar properly)