mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
dont show content when auth
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user