-
Notifications
You must be signed in to change notification settings - Fork 7
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
refactor: eliminate code duplication on conversation types #941
refactor: eliminate code duplication on conversation types #941
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #941 +/- ##
==========================================
+ Coverage 79.54% 79.76% +0.22%
==========================================
Files 118 114 -4
Lines 21089 21056 -33
==========================================
+ Hits 16775 16796 +21
+ Misses 4314 4260 -54
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
2c59de7
to
411e8d9
Compare
d0a28df
to
7f35bf9
Compare
7f35bf9
to
610da70
Compare
7a5a503
to
d4cd087
Compare
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.
Looks great so far; I love the fundamental idea here.
6b19d53
to
9cc6b4e
Compare
821f42b
to
2dac716
Compare
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.
Very nice work!
New trait is added and implemented: * `HasClientAndProvider`, implemented by `CentralContext` and `MlsCentral`
Two traits are added: * `ConversationWithMls` an internal trait, representing a `Conversation` with an associated type implementing the `HasClientAndProvider` trait * `Conversation`, the public trait that exposes the read-only API of a conversation. This contains all the shared code between `ImmutableConversation` and `ConversationGuard`.
After removing duplicated code, we drop the `e2ei` module inside the conversation guard module. Here is the new place for the tests that were in that module.
I.e., import the new trait.
2dac716
to
516f701
Compare
What's new in this PR
See title and commit history
PR Submission Checklist for internal contributors
SQPIT-764
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.