kopia lustrzana https://github.com/vitorpamplona/amethyst
Trim display names when possible
rodzic
77bd646b1d
commit
2726011126
|
@ -75,11 +75,11 @@ private fun UserNameDisplay(
|
||||||
fontWeight: FontWeight = FontWeight.Bold
|
fontWeight: FontWeight = FontWeight.Bold
|
||||||
) {
|
) {
|
||||||
if (bestUserName != null && bestDisplayName != null && bestDisplayName != bestUserName) {
|
if (bestUserName != null && bestDisplayName != null && bestDisplayName != bestUserName) {
|
||||||
UserAndUsernameDisplay(bestDisplayName, tags, bestUserName, modifier, showPlayButton, fontWeight)
|
UserAndUsernameDisplay(bestDisplayName.trim(), tags, bestUserName.trim(), modifier, showPlayButton, fontWeight)
|
||||||
} else if (bestDisplayName != null) {
|
} else if (bestDisplayName != null) {
|
||||||
UserDisplay(bestDisplayName, tags, modifier, showPlayButton, fontWeight)
|
UserDisplay(bestDisplayName.trim(), tags, modifier, showPlayButton, fontWeight)
|
||||||
} else if (bestUserName != null) {
|
} else if (bestUserName != null) {
|
||||||
UserDisplay(bestUserName, tags, modifier, showPlayButton, fontWeight)
|
UserDisplay(bestUserName.trim(), tags, modifier, showPlayButton, fontWeight)
|
||||||
} else {
|
} else {
|
||||||
NPubDisplay(npubDisplay, modifier, fontWeight)
|
NPubDisplay(npubDisplay, modifier, fontWeight)
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue