Skip to content
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

timeline: simplify redaction and add documentation #3344

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Apr 19, 2024

Do you know what the differences between a TimelineEventKind Redaction, RedactedMessage, and LocalRedaction are? Now, with this brand new reverse-engineering fueled pull request, you'll do! Don't hesitate to take this one-in-a-lifetime opportunity to shine at Matrix-related events before it's too late!

Redaction was requiring the `RoomRedactionEventContent`, which was
eventually unused in all the code paths; this removes it.

Also adds lots of documentation for the different types of reaction that
can happen in the timeline.
@bnjbvr bnjbvr requested a review from a team as a code owner April 19, 2024 10:43
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team April 19, 2024 10:43
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.61%. Comparing base (a3e6a07) to head (08bfea5).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3344      +/-   ##
==========================================
- Coverage   83.63%   83.61%   -0.02%     
==========================================
  Files         241      241              
  Lines       24881    24848      -33     
==========================================
- Hits        20808    20777      -31     
+ Misses       4073     4071       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Well done!

crates/matrix-sdk-ui/src/timeline/inner/mod.rs Outdated Show resolved Hide resolved
@bnjbvr bnjbvr force-pushed the bnjbvr/simplify-timeline-redaction branch from 9b5f2f0 to 08bfea5 Compare April 19, 2024 13:02
@bnjbvr bnjbvr enabled auto-merge (rebase) April 19, 2024 13:02
@bnjbvr bnjbvr merged commit db5151d into main Apr 19, 2024
35 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/simplify-timeline-redaction branch April 19, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants