-
Notifications
You must be signed in to change notification settings - Fork 252
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
Conversation
9b25278
to
60f5fc7
Compare
Codecov ReportAttention: Patch coverage is
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. |
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.
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)>, |
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.
😋
); | ||
// fall through and continue the loop | ||
} | ||
let mut token = |
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.
👍
…rs file No changes in behavior, just pure code motion.
60f5fc7
to
ce8aa3b
Compare
This builds on top of #3195 to make use of the new event cache's backpagination capabilities in the timeline code.