BugFix: Not showing display name on [n] tags

This commit is contained in:
Vitor Pamplona
2023-06-29 16:28:47 -04:00
parent 94057059bb
commit b2cdc2ddef
@@ -938,13 +938,13 @@ fun TagLink(word: String, tags: ImmutableListOfLists<String>, canPreview: Boolea
) )
} else if (it.user != null) { } else if (it.user != null) {
Row() { Row() {
DisplayUserFromTag(it.user, loadedTag?.addedChars ?: "", nav) DisplayUserFromTag(it.user, it.addedChars ?: "", nav)
} }
} else if (it.note != null) { } else if (it.note != null) {
Row() { Row() {
DisplayNoteFromTag( DisplayNoteFromTag(
it.note, it.note,
loadedTag?.addedChars ?: "", it.addedChars ?: "",
canPreview, canPreview,
accountViewModel, accountViewModel,
backgroundColor, backgroundColor,
@@ -999,7 +999,7 @@ private fun DisplayUserFromTag(
Crossfade(targetState = meta) { Crossfade(targetState = meta) {
Row() { Row() {
val displayName = remember(it) { val displayName = remember(it) {
it?.bestDisplayName() ?: hex it?.bestDisplayName() ?: it?.bestUsername() ?: hex
} }
CreateClickableTextWithEmoji( CreateClickableTextWithEmoji(
clickablePart = displayName, clickablePart = displayName,