WIP : Set user status#7094
Conversation
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
…ith TextField row
a6c7ee9 to
29b8068
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #7094 +/- ##
===========================================
+ Coverage 80.62% 80.63% +0.01%
===========================================
Files 2686 2694 +8
Lines 76354 76687 +333
Branches 10269 10317 +48
===========================================
+ Hits 61557 61836 +279
- Misses 10866 10892 +26
- Partials 3931 3959 +28 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| modifier = Modifier.padding(vertical = 16.dp), | ||
| ) | ||
| }, | ||
| trailingContent = ListItemContent.Custom({ |
There was a problem hiding this comment.
This trailing content is empty, could be removed.
|
|
||
| @ContributesTo(SessionScope::class) | ||
| @BindingContainer | ||
| interface UserStatusBindingContainer { |
There was a problem hiding this comment.
Our current convention is to name this class UserStatusModule. But maybe we should change the convention (probably tight to the old DI API) and rename the other interfaces at some point.
There was a problem hiding this comment.
Yeah, I don't have strong opinion, I can use Module and we make the change later on the whole codebase
There was a problem hiding this comment.
Let's keep it like this then, and rename the other ones separately
| fun `initial state - no status set`() = runTest { | ||
| moleculeFlow(RecompositionMode.Immediate) { | ||
| createPresenter().present() | ||
| }.test { |
| override suspend fun getUserProfile(): Result<MatrixUser> = getProfile(sessionId) | ||
| .onSuccess { matrixUser -> | ||
| _userProfile.emit(matrixUser) | ||
| // Also update our session storage |
There was a problem hiding this comment.
Why removing this comment? It does not add much value but still should not be removed.
There was a problem hiding this comment.
I don't like obvious comment like this :)
|



Content
Start implementing the set user status part, but using only in-memory data (no sdk yet).
So this is mostly design work.
What is missing :
Motivation and context
Handles part of
#6877
#6878
#6879
Screenshots / GIFs
See recorded screenshots.
Tests
Tested devices
Checklist