-
Notifications
You must be signed in to change notification settings - Fork 155
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
Verified user badge #3718
Verified user badge #3718
Conversation
…e module `:features:userprofile:shared`
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.
Oups, let me check what happened here (I am rebasing too many times this branch...)
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
aUserProfileState(startDmActionState = AsyncAction.Loading), | ||
aUserProfileState(canCall = true), | ||
aUserProfileState(dmRoomId = null), |
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.
This state was the same than the first one, so I removed it.
private suspend fun getUserIdentity(userId: UserId): UserIdentity { | ||
return service.userIdentity( | ||
userId = userId.value, | ||
// requestFromHomeserverIfNeeded = true, |
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.
This param will come later.
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.
Actually no, I'll cleanup later.
Add disable action to verify user.
4dcd271
to
596fe5e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3718 +/- ##
===========================================
+ Coverage 83.02% 83.05% +0.02%
===========================================
Files 1752 1753 +1
Lines 43787 43839 +52
Branches 5122 5129 +7
===========================================
+ Hits 36355 36409 +54
Misses 5611 5611
+ Partials 1821 1819 -2 ☔ View full report in Codecov by Sentry. |
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.
Some small remarks otherwise LGTM!
@@ -112,6 +113,21 @@ class RoomDetailsPresenter @Inject constructor( | |||
|
|||
val roomNotificationSettingsState by room.roomNotificationSettingsStateFlow.collectAsState() | |||
|
|||
val roomBadges by produceState(persistentListOf(), isPublic) { |
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.
If the room becomes encrypted this won't be refreshed.
I'd instead use a computed property on RoomDetailsState
as we already have all the data we need in the state
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.
If the room becomes encrypted this won't be refreshed.
I have seen that. We need isEncrypted
property to be added in RoomInfo for fix that properly across the application.
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.
Done in 35867f9
type = RoomBadge.Type.Neutral, | ||
) | ||
} | ||
if (roomBadge.isEmpty()) return |
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.
Good practice is to let a Composable
function always have at least a root, so I'd just wrap this code in a Box
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.
Quality Gate passedIssues Measures |
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.
Thanks for the changes!
Content
Show a "Verified" badge in room member detail page when the user is verified. If the user is not verified, show a disabled action to inform the user that they must use another client to verify a user.
First commits are extraction of UI component
MatrixBadge
and creation ofMatrixBadgeRowMolecule
.Motivation and context
Closes #3684
Screenshots / GIFs
See recorded one
Tests
Tested devices
Checklist