BugFix for not rendering images on markdown when there is no NIP19 reference in the text.

This commit is contained in:
Vitor Pamplona
2023-07-04 12:19:56 -04:00
parent 9fadab5bb9
commit e0f186bb94

View File

@@ -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()
}
}