mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 00:52:34 +02:00
Refactors extra chars for Bech Links
This commit is contained in:
@@ -647,7 +647,7 @@ fun BechLink(
|
|||||||
accountViewModel,
|
accountViewModel,
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
nav,
|
nav,
|
||||||
loadedLink!!,
|
loadedLink?.nip19?.additionalChars?.ifBlank { null },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else if (loadedLink?.nip19 != null) {
|
} else if (loadedLink?.nip19 != null) {
|
||||||
@@ -672,7 +672,7 @@ private fun DisplayFullNote(
|
|||||||
accountViewModel: AccountViewModel,
|
accountViewModel: AccountViewModel,
|
||||||
backgroundColor: MutableState<Color>,
|
backgroundColor: MutableState<Color>,
|
||||||
nav: (String) -> Unit,
|
nav: (String) -> Unit,
|
||||||
loadedLink: LoadedBechLink,
|
extraChars: String?,
|
||||||
) {
|
) {
|
||||||
NoteCompose(
|
NoteCompose(
|
||||||
baseNote = it,
|
baseNote = it,
|
||||||
@@ -683,8 +683,6 @@ private fun DisplayFullNote(
|
|||||||
nav = nav,
|
nav = nav,
|
||||||
)
|
)
|
||||||
|
|
||||||
val extraChars = remember(loadedLink) { loadedLink.nip19.additionalChars.ifBlank { null } }
|
|
||||||
|
|
||||||
extraChars?.let {
|
extraChars?.let {
|
||||||
Text(
|
Text(
|
||||||
it,
|
it,
|
||||||
|
Reference in New Issue
Block a user