From 07dbcbf5c3a872e8f95bc26e3b540e25a13fcb43 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 1 Jul 2024 16:34:28 -0400 Subject: [PATCH 1/2] Adds FileServer events to be downloaded for the active account. --- .../com/vitorpamplona/amethyst/service/NostrAccountDataSource.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/NostrAccountDataSource.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/NostrAccountDataSource.kt index 4df69e1e4..93c6149d4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/NostrAccountDataSource.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/NostrAccountDataSource.kt @@ -110,6 +110,7 @@ object NostrAccountDataSource : AmethystNostrDataSource("AccountData") { AdvertisedRelayListEvent.KIND, ChatMessageRelayListEvent.KIND, SearchRelayListEvent.KIND, + FileServersEvent.KIND, PrivateOutboxRelayListEvent.KIND, ), authors = listOf(account.userProfile().pubkeyHex), From e61404146be463cace9dc63e30a9d9321deb32eb Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 1 Jul 2024 16:34:44 -0400 Subject: [PATCH 2/2] Requests a NIP-96 compliant server --- .../amethyst/ui/actions/mediaServers/MediaServerEditField.kt | 2 +- amethyst/src/main/res/values/strings.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/MediaServerEditField.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/MediaServerEditField.kt index 1b8f0e284..586719a14 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/MediaServerEditField.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/mediaServers/MediaServerEditField.kt @@ -56,7 +56,7 @@ fun MediaServerEditField( ), ) { OutlinedTextField( - label = { Text(text = stringRes(R.string.add_a_relay)) }, + label = { Text(text = stringRes(R.string.add_a_nip96_server)) }, modifier = Modifier.weight(1f), value = url, onValueChange = { url = it }, diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index 971167a03..3e9cac723 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -938,4 +938,6 @@ Insufficient Storage - The server doesn’t have enough storage to process the request successfully Loop Detected - The server detects an infinite loop while processing the request Network Authentication Required - The client must be authenticated to access the network + + Add a NIP-96 Server