-
Notifications
You must be signed in to change notification settings - Fork 30
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: remove not needed usage of observe self user [WPB-15414] #3863
refactor: remove not needed usage of observe self user [WPB-15414] #3863
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3863 +/- ##
===========================================
- Coverage 45.42% 45.41% -0.02%
===========================================
Files 491 491
Lines 17022 17021 -1
Branches 2848 2850 +2
===========================================
- Hits 7733 7730 -3
Misses 8502 8502
- Partials 787 789 +2
Continue to review full report in Codecov by Sentry.
|
Built wire-android-staging-compat-pr-3863.apk is available for download |
Built wire-android-dev-debug-pr-3863.apk is available for download |
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.
home about SelfUserProfileViewModel
?
…ve-self-user # Conflicts: # kalium
|
Built wire-android-staging-compat-pr-3863.apk is available for download |
Built wire-android-dev-debug-pr-3863.apk is available for download |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
ObserveSelfUserUseCase is often used like this:
val userId = observeSelf().first()
This may cause two issues:
NoSuchElementException if emptyFlow is returned.
Endless waiting for item if flow does not emit any blocking the UI in inconsistent state.
Solutions
Replace with GetSelfUserUseCase and handle possible null return value.
Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.