dont show content when auth

This commit is contained in:
greenart7c3
2023-10-16 16:09:55 -03:00
parent 81b20511be
commit 776e68f0cd
@@ -86,18 +86,18 @@ fun EventData(
event.pubKey.toShortenHex()
)
EventRow(
Icons.Default.ContentPaste,
stringResource(R.string.content),
event.content
)
if (event.kind == 22242) {
EventRow(
Icons.Default.Wifi,
stringResource(R.string.relay),
event.tags.firstOrNull { it.size > 1 && it[0] == "relay" }?.get(1)?.removePrefix("wss://")?.removePrefix("ws://") ?: ""
)
} else {
EventRow(
Icons.Default.ContentPaste,
stringResource(R.string.content),
event.content
)
}
Divider(