-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: extract send message to viemodel #2824
Conversation
Ups 🫰🟨This PR is too big. Please try to break it up into smaller PRs. |
Test Results878 tests +2 878 ✅ +2 14m 8s ⏱️ +47s Results for commit 94cb684. ± Comparison against base commit de629ad. This pull request removes 24 and adds 26 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Build 3768 failed. |
Build 3771 failed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2824 +/- ##
===========================================
+ Coverage 43.63% 43.76% +0.13%
===========================================
Files 419 421 +2
Lines 14022 14019 -3
Branches 2535 2537 +2
===========================================
+ Hits 6118 6135 +17
+ Misses 7186 7164 -22
- Partials 718 720 +2
Continue to review full report in Codecov by Sentry.
|
APKs built during tests are available here. Scroll down to Artifacts! |
Build 3779 succeeded. The build produced the following APK's: |
@@ -130,8 +131,8 @@ fun ConversationMediaScreen( | |||
) | |||
|
|||
SnackBarMessage( | |||
messageComposerViewModel.infoMessage, | |||
conversationMessagesViewModel.infoMessage | |||
composerMessages = MutableSharedFlow<SnackBarMessage>().asSharedFlow(), |
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.
shouldn't we be passing a shared flow variable here correctly so it can be listened to? this just seems like a new MutableSharedFlow but no one is emitting to it? 🤔
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's used in 2 places where in one place it doesn't have second info message. I will try to figure better way to do it 💪
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.
maybe just make this parameter nullable 😄
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.
Great work! I just have a tiny question 🤔
APKs built during tests are available here. Scroll down to Artifacts! |
Build 3795 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 3798 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Extracted send message functionality to separate view model to have it in future reusable