-
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: Unblock button is no longer visible when we block someone (WPB-2427) #2012
chore: Unblock button is no longer visible when we block someone (WPB-2427) #2012
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2012 +/- ##
=============================================
+ Coverage 38.54% 38.64% +0.09%
Complexity 895 895
=============================================
Files 287 287
Lines 11347 11345 -2
Branches 1460 1460
=============================================
+ Hits 4374 4384 +10
+ Misses 6545 6536 -9
+ Partials 428 425 -3
Continue to review full report in Codecov by Sentry.
|
Test Results516 tests +3 515 ✔️ +3 26s ⏱️ +5s Results for commit 07094be. ± Comparison against base commit 35bc54c. This pull request removes 5 and adds 8 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 701 succeeded. The build produced the following APK's: |
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.
Nice! Just have some tiny suggestions if they make sense 🤔
app/src/main/kotlin/com/wire/android/ui/connection/ConnectionActionButtonViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/connection/ConnectionActionButtonViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/connection/ConnectionActionButtonViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/connection/ConnectionActionButtonViewModel.kt
Outdated
Show resolved
Hide resolved
…ctionButtonViewModel.kt Co-authored-by: Alexandre Ferris <[email protected]>
…ctionButtonViewModel.kt Co-authored-by: Alexandre Ferris <[email protected]>
…ctionButtonViewModel.kt Co-authored-by: Alexandre Ferris <[email protected]>
…ctionButtonViewModel.kt Co-authored-by: Alexandre Ferris <[email protected]>
APKs built during tests are available here. Scroll down to Artifacts! |
Build 707 succeeded. The build produced the following APK's: |
…-2427) (#2012) Co-authored-by: Alexandre Ferris <[email protected]>
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
In other profile screen, unblock button is no longer visible when block someone. We see "Open Conversation" instead
Causes (Optional)
Main Cause: The state in
ConnectionActionButtonViewModelImpl
is not being updating when the user is blocked.The state is initialised on viewModel creation by getting passed params and then it will never be updated.
This happens because we already have an instance of the viewModel and the system won't create another one after recomposition. Therefore we will use the same state all the time.
Solutions
Since the
connectionState
is not something specific toConnectionActionButtonViewModel
, and it's already managed inOtherUserProfileScreenViewModel
. I removed it fromConnectionActionButtonViewModel
to be handled in one place.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
.