feat: broadcast or rebroadcast note to specific relays #536
No reviewers
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#536
Loading…
Reference in New Issue
No description provided.
Delete Branch "DanConwayDev/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The rationale for this feature is that users should have greater control over which relays they publish to on a case by case basis. They should also be able to change their mind (hence the rebroadcast feature).
Implementation: This adds two related features to different sections of the UI:
1. broadcast note to specific relays
Added a new section to the advanced options in NoteCreator which is used for both new notes and replies. This lists the users write relays and enables users to uncheck relays they do not wish to broadcast the note to.
When one or more relays are unchecked the submission is diverted from
publisher.broadcast
topublisher.broadcastAll
with the desired relays specified.2. rebroadcast user's own note to specific relays
Replaces 'block' from the 'more' menu on a given note with 'Broadcast Again' if the note was authored by the logged in user. The logic here is that the user won't want to block themselves. We also don't think they should be broadcasting other people's notes to new relays. When the new option is selected a modal opens where the user can uncheck the relays they do not want to (re)broadcast to.
Signed up to your Gitea instance to watch this PR.
👍 I need to fix the broadcast code, otherwise this looks good to me