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: integrate the event's cache backpagination into the timeline #3196

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Mar 7, 2024

This builds on top of #3195 to make use of the new event cache's backpagination capabilities in the timeline code.

@bnjbvr bnjbvr force-pushed the ec-backpagination-into-timeline branch from 9b25278 to 60f5fc7 Compare March 14, 2024 12:41
@bnjbvr bnjbvr marked this pull request as ready for review March 14, 2024 13:08
@bnjbvr bnjbvr requested a review from a team as a code owner March 14, 2024 13:08
@bnjbvr bnjbvr requested review from Hywan and removed request for a team March 14, 2024 13:08
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 83.60656% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 83.74%. Comparing base (73684ab) to head (ce8aa3b).
Report is 4 commits behind head on main.

Files Patch % Lines
crates/matrix-sdk-ui/src/timeline/pagination.rs 81.25% 9 Missing ⚠️
crates/matrix-sdk-ui/src/timeline/inner/state.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3196   +/-   ##
=======================================
  Coverage   83.74%   83.74%           
=======================================
  Files         235      235           
  Lines       24223    24147   -76     
=======================================
- Hits        20286    20223   -63     
+ Misses       3937     3924   -13     

☔ 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.

It was a joy to read this PR. Well done!

/// items.
///
/// Private because it's not needed by `TimelineEventHandler`.
back_pagination_tokens: VecDeque<(OwnedEventId, String)>,
Copy link
Member

Choose a reason for hiding this comment

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

😋

);
// fall through and continue the loop
}
let mut token =
Copy link
Member

Choose a reason for hiding this comment

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

👍

@bnjbvr bnjbvr force-pushed the ec-backpagination-into-timeline branch from 60f5fc7 to ce8aa3b Compare March 14, 2024 13:43
@bnjbvr bnjbvr marked this pull request as draft March 14, 2024 13:57
@bnjbvr bnjbvr marked this pull request as ready for review March 14, 2024 14:26
@bnjbvr bnjbvr merged commit d1e92ec into main Mar 14, 2024
68 checks passed
@bnjbvr bnjbvr deleted the ec-backpagination-into-timeline branch March 14, 2024 14:47
@bnjbvr bnjbvr changed the title timeline: integrate the event's cache into the timeline timeline: integrate the event's cache backpagination into the timeline Mar 15, 2024
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