Remove user status from the Matrix user header

This commit is contained in:
ganfra
2026-09-30 15:54:41 +02:00
parent 8c0d23771c
commit df81f5c0f7
@@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clipToBounds
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.PreviewParameter import androidx.compose.ui.tooling.preview.PreviewParameter
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@@ -57,11 +58,13 @@ fun MatrixUserHeader(
verticalArrangement = Arrangement.spacedBy(2.dp) verticalArrangement = Arrangement.spacedBy(2.dp)
) { ) {
// Name // Name
DisplayNameWithStatus( Text(
name = matrixUser.getBestName(), modifier = Modifier.clipToBounds(),
status = matrixUser.displayedStatus, text = matrixUser.getBestName(),
nameColor = ElementTheme.colors.textPrimary, maxLines = 1,
style = ElementTheme.typography.fontHeadingMdRegular, style = ElementTheme.typography.fontHeadingMdRegular,
overflow = TextOverflow.Ellipsis,
color = ElementTheme.colors.textPrimary,
) )
// Id // Id
if (matrixUser.displayName.isNullOrEmpty().not()) { if (matrixUser.displayName.isNullOrEmpty().not()) {