-
Notifications
You must be signed in to change notification settings - Fork 358
feat(sdk,ui): Support edits as LatestEventValue
#5913
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
Conversation
76593a9 to
d3f1b95
Compare
This patch supports any edits at a possible `LatestEventValue` candidate.
…diate previous event. This patch changes the rule of what is a `LatestEventValue` candidate in case of an edit. An edit must target/relate to its immediate previous event to be a candidate. Otherwise it's easy to edit an old message and create a “broken” `LatestEventValue` because it points to an older message that the user may not be able to find easily.
d3f1b95 to
740811d
Compare
CodSpeed Performance ReportMerging #5913 will not alter performanceComparing Summary
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5913 +/- ##
==========================================
- Coverage 88.66% 88.66% -0.01%
==========================================
Files 362 362
Lines 104399 104488 +89
Branches 104399 104488 +89
==========================================
+ Hits 92569 92646 +77
- Misses 7499 7507 +8
- Partials 4331 4335 +4 ☔ View full report in Codecov by Sentry. |
|
Tested on EXI, this works and I love it! 🫶 |
andybalaam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!

This patch adds the ability for an edit (
m.room.messagewith am.relates_to+m.replace) to be considered aLatestEventValuecandidate if and only if it edits the immediate previous event. Otherwise it's easy to edit an old message and create a “broken”LatestEventValuebecause it points to an older message that the user may not be able to find easily.