mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Don't show profile name parentheses if we don't have one.
This commit is contained in:
@@ -193,10 +193,10 @@ private fun Content(
|
|||||||
|
|
||||||
AboutRow(
|
AboutRow(
|
||||||
startIcon = painterResource(R.drawable.symbol_person_24),
|
startIcon = painterResource(R.drawable.symbol_person_24),
|
||||||
text = if (!model.hasUserSetDisplayName) {
|
text = if (model.hasUserSetDisplayName && model.displayName.isNotBlank() && model.profileName.isNotBlank()) {
|
||||||
model.displayName
|
|
||||||
} else {
|
|
||||||
stringResource(id = R.string.AboutSheet__user_set_display_name_and_profile_name, model.displayName, model.profileName)
|
stringResource(id = R.string.AboutSheet__user_set_display_name_and_profile_name, model.displayName, model.profileName)
|
||||||
|
} else {
|
||||||
|
model.displayName
|
||||||
},
|
},
|
||||||
modifier = Modifier.fillMaxWidth()
|
modifier = Modifier.fillMaxWidth()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user