Merge pull request #6705 from bxdxnn/misc/roommembermoderation-avatar-tap

Make the avatar in the room member moderation bottom sheet clickable
This commit is contained in:
Benoit Marty 2026-05-21 11:59:28 +02:00 committed by GitHub
commit 989201eb68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@
package io.element.android.features.roommembermoderation.impl
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
@ -239,6 +240,12 @@ private fun RoomMemberActionsBottomSheet(
modifier = Modifier
.padding(bottom = 24.dp)
.align(Alignment.CenterHorizontally)
.clickable {
coroutineScope.launch {
onSelectAction(ModerationAction.DisplayProfile, user)
bottomSheetState.hide()
}
}
)
val bestName = user.getBestName()
Text(