refactor(groups): remove the group's nostr profile, relays and posts
The group's detail screen loses its "Nostr profile", "Relays" and "Posts" rows, and the six screens behind them go with them: the profile, its editor, the relay lists, their editor, the posts and the composer. So do the readers they stood on (GroupNostrProfile, GroupRelayList, GroupPost), their ChatRepository methods, and 97 strings. Two things go that were not named, because nothing else reaches them. BroadcastGroupSignedEventScreen was only opened from those three screens, so the app no longer sends a group-signed event to a relay, and EventPublishTransport goes with it. "Propose event" accepted only a profile, a post or a relay list, so it would refuse every paste; ProposeGroupEventScreen and GroupEventProposal are removed, and with them the detail screen's canEditNostrProfile gate. What is left of that block is the wallet row, shown in Marmot rooms only. The transcript keeps what it already holds. The three message types stay as private legacy names in GROUP_IDENTITY_TYPES, as the curated-lists types did, so rows already written stay system lines. A profile or relay list arriving in a room now applies to nothing, so a signing session an older build opened for one ends without a raw-JSON bubble. A kind:1 falls through to "unsupported", which is what it was before posts existed. ProposedEvent no longer describes the three kinds. GroupSignedWorkRowsJvmTest now covers the wallet row and the absence of the removed rows. The chronicle tests still use a profile, a relay list and a post as their kinds; they compare GroupSignedEvent rows, which are unchanged, so only ChronicleTestKinds' account of why is corrected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d878c9b992
commit
b21f4c4d2c
73 files changed
+139
-10048
No files matched your search
@@ -377,104 +377,7 @@
|
||||
<string name="check_the_combined_result">Check the combined result and confirm it</string>
|
||||
<string name="the_group_has_its_key_finish_setting_it_up">The group has its key — finish setting it up</string>
|
||||
<string name="open">Open</string>
|
||||
<string name="nostr_profile">Nostr profile</string>
|
||||
<string name="this_group_has_not_said_anything_about_itself">This group hasn't said anything about itself on Nostr yet.</string>
|
||||
<!-- The row on the group's screen that opens the profile, when there is none to name. -->
|
||||
<string name="not_described_yet">Not described yet</string>
|
||||
<string name="edit_nostr_profile">Edit Nostr profile</string>
|
||||
<string name="propose_nostr_profile">Propose Nostr profile</string>
|
||||
<string name="what_the_group_says_about_itself_on_nostr">What the group says about itself on Nostr</string>
|
||||
<string name="the_group_signs_its_profile_so_it_takes_a_quorum">The group signs this, so it takes a quorum. An empty field unsays what the group had said.</string>
|
||||
<string name="this_group_has_no_shared_key_to_sign_a_profile">This group has no shared key, so it cannot sign a profile. Run a shared key ceremony first.</string>
|
||||
<string name="signed_by_the_group_on">Signed by the group on %1$s</string>
|
||||
<string name="no_name_on_this_profile">No name on this profile</string>
|
||||
<string name="about">About</string>
|
||||
<string name="picture_url">Picture url</string>
|
||||
<string name="website">Website</string>
|
||||
<string name="nostr_address">Nostr address</string>
|
||||
<string name="lightning_address">Lightning address</string>
|
||||
<string name="eg_translation_collective">eg. Translation collective</string>
|
||||
<string name="eg_a_group_translating_hard_books">eg. A group translating hard books into Sesotho</string>
|
||||
<string name="eg_https_example_com_group_png">eg. https://example.com/group.png</string>
|
||||
<string name="eg_https_example_com">eg. https://example.com</string>
|
||||
<string name="eg_group_example_com">eg. group@example.com</string>
|
||||
<string name="eg_group_getalby_com">eg. group@getalby.com</string>
|
||||
<string name="could_not_ask_the_group_to_sign_this_profile">Couldn't ask the group to sign this profile.</string>
|
||||
<string name="relays">Relays</string>
|
||||
<string name="edit_relays">Edit relays</string>
|
||||
<string name="not_set_yet">Not set yet</string>
|
||||
<string name="no_relays_in_this_list">No relays in this list</string>
|
||||
<!-- The row on the group's screen that opens the relay lists: how many of the four the group has signed. -->
|
||||
<string name="n_of_m_relay_lists_agreed">%1$s of %2$s lists agreed</string>
|
||||
<string name="where_the_group_lives_on_nostr">Where the group lives on Nostr</string>
|
||||
<string name="the_group_signs_each_list_so_it_takes_a_quorum">The group signs each list, so it takes a quorum. Only the lists you change are proposed.</string>
|
||||
<string name="this_group_has_no_shared_key_to_sign_relays">This group has no shared key, so it cannot sign a relay list. Run a shared key ceremony first.</string>
|
||||
<string name="relay_url">Relay url</string>
|
||||
<string name="eg_wss_relay_example_com">eg. wss://relay.example.com</string>
|
||||
<string name="add_relay">Add relay</string>
|
||||
<string name="that_is_not_a_relay_address">That isn't a relay address. Relays start with wss:// and cannot be on this device.</string>
|
||||
<string name="that_relay_is_already_in_this_list">That relay is already in this list.</string>
|
||||
<string name="propose_relays">Propose relays</string>
|
||||
<string name="nothing_has_changed_to_propose">Nothing has changed, so there is nothing to propose.</string>
|
||||
<string name="could_not_ask_the_group_to_sign_these_relays">Couldn't ask the group to sign these relays.</string>
|
||||
<string name="relay_read">Read</string>
|
||||
<string name="relay_write">Write</string>
|
||||
<string name="relay_set_general">General</string>
|
||||
<string name="relay_set_messages">Messages</string>
|
||||
<string name="relay_set_search">Search</string>
|
||||
<string name="relay_set_blocked">Blocked</string>
|
||||
<string name="relay_set_general_purpose">Where the group publishes, and where a reader should look for it.</string>
|
||||
<string name="relay_set_messages_purpose">Where a message addressed to the group should be sent.</string>
|
||||
<string name="relay_set_search_purpose">The relays a search of the group's work runs against.</string>
|
||||
<string name="relay_set_blocked_purpose">Relays the group will not talk to.</string>
|
||||
<string name="relays_are_public_a_group_cannot_encrypt">A group signs and cannot decrypt, so every list here is public — including the blocked one, which most clients keep private.</string>
|
||||
<string name="signed_by_the_group_on_short">Signed %1$s</string>
|
||||
<string name="posts">Posts</string>
|
||||
<string name="add_post">Add post</string>
|
||||
<string name="propose_post">Propose post</string>
|
||||
<string name="this_group_has_not_posted_anything_yet">This group hasn't posted anything yet.</string>
|
||||
<!-- The row on the group's screen that opens the posts. -->
|
||||
<string name="no_posts_yet">No posts yet</string>
|
||||
<string name="one_post">1 post</string>
|
||||
<string name="n_posts">%1$s posts</string>
|
||||
<string name="what_should_the_group_say">What should the group say?</string>
|
||||
<string name="the_group_signs_a_post_so_it_takes_a_quorum">The group signs a post, so it takes a quorum. It goes out in the group's name, not yours.</string>
|
||||
<string name="this_group_has_no_shared_key_to_sign_a_post">This group has no shared key, so it cannot sign a post. Run a shared key ceremony first.</string>
|
||||
<string name="a_post_needs_something_to_say">A post needs something to say.</string>
|
||||
<string name="could_not_ask_the_group_to_sign_this_post">Couldn't ask the group to sign this post.</string>
|
||||
<string name="posted_on">Posted %1$s</string>
|
||||
<string name="a_reply">A reply</string>
|
||||
<string name="propose_event">Propose event</string>
|
||||
<string name="paste_an_unsigned_event_for_the_group_to_sign">Paste an unsigned Nostr event for the group to sign. It is filed by kind: a profile (kind 0), a post (kind 1) or a relay list.</string>
|
||||
<string name="the_group_signs_an_event_so_it_takes_a_quorum">The group signs it, so it takes a quorum. The author is the group and the time is now, whatever the paste says about either.</string>
|
||||
<string name="this_group_has_no_shared_key_to_sign_an_event">This group has no shared key, so it cannot sign an event. Run a shared key ceremony first.</string>
|
||||
<string name="could_not_ask_the_group_to_sign_this_event">Couldn't ask the group to sign this event.</string>
|
||||
<string name="unsigned_event">Unsigned event</string>
|
||||
<string name="eg_kind_1_tags_content">{"kind": 1, "tags": [], "content": "…"}</string>
|
||||
<string name="what_the_group_would_sign">What the group would sign</string>
|
||||
<string name="kind_n">Kind %1$s</string>
|
||||
<string name="that_is_not_json">That isn't JSON.</string>
|
||||
<string name="an_event_is_a_json_object">An event is a JSON object with a kind, tags and content.</string>
|
||||
<string name="an_event_needs_a_kind">An event needs a kind.</string>
|
||||
<string name="kind_n_has_nowhere_to_go_on_this_screen">Kind %1$s has nowhere to go on the group's screen. It can file kinds %2$s.</string>
|
||||
<string name="tags_must_be_a_list_of_lists_of_strings">Tags must be a list of lists of strings.</string>
|
||||
<string name="content_must_be_text">Content must be text.</string>
|
||||
<string name="the_content_is_not_a_profile">The content isn't a profile. A kind 0 carries a JSON object of profile fields.</string>
|
||||
<string name="ask_again">Ask again</string>
|
||||
<!-- Broadcasting one event the group signed to relays a member picks. -->
|
||||
<string name="broadcast">Broadcast</string>
|
||||
<string name="sends_the_event_exactly_as_the_group_signed_it">Sends the event to each relay below, exactly as the group signed it. Any member holding it can send it: the signature is the group's, not yours.</string>
|
||||
<string name="where_the_group_has_said_it_lives_is_filled_in">Where the group has said it lives is filled in. Add or remove relays before sending.</string>
|
||||
<string name="no_relays_to_broadcast_to">No relays to broadcast to. Add one above.</string>
|
||||
<string name="add_a_relay_to_broadcast_to">Add a relay to broadcast to.</string>
|
||||
<string name="relay_sending">Sending…</string>
|
||||
<string name="relay_accepted">Accepted</string>
|
||||
<string name="relay_rejected">Rejected: %1$s</string>
|
||||
<string name="relay_could_not_send">Couldn't send: %1$s</string>
|
||||
<string name="relay_no_answer">No answer</string>
|
||||
<string name="accepted_by_n_of_m_relays">Accepted by %1$s of %2$s relays.</string>
|
||||
<string name="copy_raw_json">Copy raw JSON</string>
|
||||
<string name="copied_the_raw_json">Copied the raw JSON</string>
|
||||
<!-- Sign in: docs/nsec-sign-in.md, phase 4. -->
|
||||
<string name="a_password_protected_key_ncryptsec_is_not">A password-protected key (ncryptsec) is not supported yet. Decrypt it in the app it came from and paste the nsec.</string>
|
||||
<string name="enter_a_recovery_phrase_or_an_nsec_to_sign_in">Enter a recovery phrase or an nsec to sign in.</string>
|
||||
|
||||
Reference in new issue
Block a user