Skip to content

refactor(timeline): get rid of HandleEventResult #5030

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

Merged
merged 9 commits into from
May 14, 2025

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented May 13, 2025

Another set of simplifications after #4655 landed. I'm a bit less sure about the final commits, but this complexity is hard to tame…

@bnjbvr bnjbvr requested a review from a team as a code owner May 13, 2025 12:33
@bnjbvr bnjbvr requested review from stefanceriu and removed request for a team May 13, 2025 12:33
Copy link

codecov bot commented May 13, 2025

Codecov Report

Attention: Patch coverage is 73.39450% with 29 lines in your changes missing coverage. Please review.

Project coverage is 85.83%. Comparing base (4d027ec) to head (0885037).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
...dk-ui/src/timeline/controller/state_transaction.rs 68.47% 29 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5030      +/-   ##
==========================================
- Coverage   85.84%   85.83%   -0.01%     
==========================================
  Files         325      324       -1     
  Lines       35906    35840      -66     
==========================================
- Hits        30824    30765      -59     
+ Misses       5082     5075       -7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bnjbvr bnjbvr force-pushed the bnjbvr/timeline-handle-result branch from 01d1f23 to d4d23c5 Compare May 13, 2025 16:20
@bnjbvr bnjbvr force-pushed the bnjbvr/timeline-handle-result branch from d4d23c5 to 0885037 Compare May 13, 2025 16:26
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

Super nice cleanup, I definitely find all of it easier to follow now. Thank you!

@bnjbvr bnjbvr merged commit e4f2299 into main May 14, 2025
42 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/timeline-handle-result branch May 14, 2025 11:30
@@ -229,6 +232,55 @@ impl<'a> TimelineStateTransaction<'a> {
}
}

/// Whether the event should be added to the timeline as a new item.
fn should_add_event_item<P: RoomDataProvider>(
Copy link
Member

Choose a reason for hiding this comment

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

This is nice!

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.

3 participants