From 64183ff45ae8934872f4c478b53e66cb64745e73 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Fri, 1 May 2026 00:47:42 +0200 Subject: [PATCH] Parse nostr: stuff --- .../ui/composable/widgets/content/ContentParser.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/ac/cord/auxiliary/compose/ui/composable/widgets/content/ContentParser.kt b/composeApp/src/commonMain/kotlin/ac/cord/auxiliary/compose/ui/composable/widgets/content/ContentParser.kt index 75778ba1..54d6eab6 100644 --- a/composeApp/src/commonMain/kotlin/ac/cord/auxiliary/compose/ui/composable/widgets/content/ContentParser.kt +++ b/composeApp/src/commonMain/kotlin/ac/cord/auxiliary/compose/ui/composable/widgets/content/ContentParser.kt @@ -69,6 +69,14 @@ internal object ContentParser { is NNote -> { segments.add(ContentSegment.NostrNoteSegment(entity.hex)) } + is NEvent -> { + segments.add( + ContentSegment.NostrNoteSegment( + eventId = entity.hex, + relayHints = entity.relay.map { it.url } + ) + ) + } else -> { segments.add(ContentSegment.TextSegment(token)) }