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) {
Row() {
DisplayUserFromTag(it.user, loadedTag?.addedChars ?: "", nav)
DisplayUserFromTag(it.user, it.addedChars ?: "", nav)
}
} else if (it.note != null) {
Row() {
DisplayNoteFromTag(
it.note,
loadedTag?.addedChars ?: "",
it.addedChars ?: "",
canPreview,
accountViewModel,
backgroundColor,
@@ -999,7 +999,7 @@ private fun DisplayUserFromTag(
Crossfade(targetState = meta) {
Row() {
val displayName = remember(it) {
it?.bestDisplayName() ?: hex
it?.bestDisplayName() ?: it?.bestUsername() ?: hex
}
CreateClickableTextWithEmoji(
clickablePart = displayName,