Fixes clickable route not showing the user 's npub before loading the name.
This commit is contained in:
@@ -300,17 +300,15 @@ private fun RenderUserAsClickableText(
|
|||||||
) {
|
) {
|
||||||
val userState by baseUser.live().userMetadataInfo.observeAsState()
|
val userState by baseUser.live().userMetadataInfo.observeAsState()
|
||||||
|
|
||||||
userState?.bestName()?.let {
|
|
||||||
CreateClickableTextWithEmoji(
|
CreateClickableTextWithEmoji(
|
||||||
clickablePart = it,
|
clickablePart = userState?.bestName() ?: ("@" + baseUser.pubkeyDisplayHex()),
|
||||||
suffix = additionalChars.ifBlank { null },
|
suffix = additionalChars?.ifBlank { null },
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
route = "User/${baseUser.pubkeyHex}",
|
route = "User/${baseUser.pubkeyHex}",
|
||||||
nav = nav,
|
nav = nav,
|
||||||
tags = userState?.tags ?: EmptyTagList,
|
tags = userState?.tags ?: EmptyTagList,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun CreateClickableText(
|
fun CreateClickableText(
|
||||||
|
|||||||
Reference in New Issue
Block a user