BugFix: Not showing display name on [n] tags
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user