-
Notifications
You must be signed in to change notification settings - Fork 290
chore(ui): Extract TimelineBuilder
tasks into their own functions
#4796
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
4a72319
to
3780e44
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4796 +/- ##
==========================================
- Coverage 86.39% 86.34% -0.05%
==========================================
Files 291 291
Lines 34365 34383 +18
==========================================
- Hits 29690 29689 -1
- Misses 4675 4694 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Lovely! 👨🍳 👌
This patch moves the task responsibles to handle the `RoomEventCacheUpdate`s into its own function. The goal is to get simpler code.
…ion. This patch moves the task responsibles to handle the pinned event IDs stream into its own function. The goal is to get simpler code.
This patch moves the task responsibles to handle the `RoomSendQueueUpdate`s into its own function. The goal is to get simpler code.
…ion. This patch moves the task responsibles to handle the room keys from backups into its own function. The goal is to get simpler code.
This patch moves the task responsibles to handle the `BackupState` updates into its own function. The goal is to get simpler code.
This patch moves the task responsibles to handle the `RoomKeyInfo` updates into its own function. The goal is to get simpler code.
This patch moves an inline comment in its correct place. Code was inserted between the comment and the part of the code it was documenting.
3780e44
to
68db84d
Compare
Extracted from #4794.
This patch rewrites the
TimelineBuilder::build()
method by extracting all the spawned task code block into their own function. The resulting code is simpler to read, and we can reference each task by its function name. Moreover, each task is isolated, it's a bit easier to reason about.