fix rendering url of highlight note

This commit is contained in:
greenart7c3
2023-06-28 07:58:19 -03:00
parent 3967633f77
commit 9f96e84378
2 changed files with 4 additions and 4 deletions
@@ -51,6 +51,7 @@ object LocalCache {
} }
fun getUserIfExists(key: String): User? { fun getUserIfExists(key: String): User? {
if (key.isEmpty()) return null
return users[key] return users[key]
} }
@@ -108,6 +109,7 @@ object LocalCache {
} }
private fun isValidHexNpub(key: String): Boolean { private fun isValidHexNpub(key: String): Boolean {
if (key.isBlank()) return false
if (key.contains(":")) return false if (key.contains(":")) return false
return HexValidator.isHex(key) return HexValidator.isHex(key)
@@ -2081,9 +2081,7 @@ fun DisplayHighlight(
nav nav
) )
authorHex?.let { DisplayQuoteAuthor(authorHex ?: "", url, nav)
DisplayQuoteAuthor(authorHex, url, nav)
}
} }
@Composable @Composable
@@ -2105,7 +2103,7 @@ private fun DisplayQuoteAuthor(
} }
} }
Row() { Row {
userBase?.let { userBase -> userBase?.let { userBase ->
LoadAndDisplayUser(userBase, nav) LoadAndDisplayUser(userBase, nav)
} }