mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:26:18 +02:00
BugFix for not rendering images on markdown when there is no NIP19 reference in the text.
This commit is contained in:
@@ -340,9 +340,11 @@ private fun RefreshableContent(content: String, tags: ImmutableListOfLists<Strin
|
||||
@Composable
|
||||
fun ObserverAllNIP19References(content: String, tags: ImmutableListOfLists<String>?, onRefresh: () -> Unit) {
|
||||
var nip19References by remember(content) { mutableStateOf<List<Nip19.Return>>(emptyList()) }
|
||||
|
||||
LaunchedEffect(key1 = content) {
|
||||
launch(Dispatchers.IO) {
|
||||
nip19References = returnNIP19References(content, tags)
|
||||
onRefresh()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user