From 92ca11a583f65d6762150abe25de19eaec63f6ce Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 1 Aug 2026 17:27:56 +0000 Subject: [PATCH] chore: move stray NIP-29 section comment to AccountRelayGroupActions The relay-group section header and joinRelayGroup KDoc were left dangling at the end of AccountConcordActions when the clusters were split into separate files; reattach them to the function they describe. Found by the post-refactor audit. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_012sJgKJ4FAjcZqvkMc7U3EA --- .../vitorpamplona/amethyst/model/AccountConcordActions.kt | 7 ------- .../amethyst/model/AccountRelayGroupActions.kt | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountConcordActions.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountConcordActions.kt index 4b65c4848f..6fc115f11d 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountConcordActions.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountConcordActions.kt @@ -1055,11 +1055,4 @@ class AccountConcordActions( account.client.fetchAllPagesFromPool(filters = byRelay) { _, _ -> drained++ } Log.d("Concord", "syncConcordControlPlanes: paged ${authorsByRelay.size} relay(s), drained $drained control wrap(s)") } - - // ── NIP-29 relay-group actions ─────────────────────────────────────────── - // All group commands are published ONLY to the group's host relay, where - // relay29 authorizes them. The relay is the source of truth; the kind-10009 - // list is our own cross-device bookkeeping of what we joined. - - /** Send a kind 9021 join request to the group's host relay and remember it. */ } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountRelayGroupActions.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountRelayGroupActions.kt index 7816501a0b..d8be5a68c3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountRelayGroupActions.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/AccountRelayGroupActions.kt @@ -82,6 +82,11 @@ import kotlinx.serialization.json.Json class AccountRelayGroupActions( private val account: Account, ) { + // All group commands are published ONLY to the group's host relay, where + // relay29 authorizes them. The relay is the source of truth; the kind-10009 + // list is our own cross-device bookkeeping of what we joined. + + /** Send a kind 9021 join request to the group's host relay and remember it. */ suspend fun joinRelayGroup( channel: RelayGroupChannel, code: String? = null,