Add a share toggle to the Podcasts tab
Shift+F in the podcasts context shares the selected or opened podcast through PodcastStore::set_shared (a synced decision) or makes it private again. A feed URL that looks private is confirmed first in a dialog that lists the warnings in Russian. The reconciler runs after share and unsubscribe actions, received podcast operations, feed refreshes, overlay restarts and periodically; the list and side panel show the shared and published state and publication errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c90035fa2
commit
8f4e58d8af
14 files changed
+943
-8
No files matched your search
@@ -768,6 +768,18 @@ pub enum Popup {
|
||||
podcast_id: music_dht::podcast::PodcastId,
|
||||
title: String,
|
||||
},
|
||||
/// Sharing a podcast whose feed URL looks private: the user confirms
|
||||
/// publishing exactly `urls`. Enter/y publishes, Esc/n cancels; when the
|
||||
/// podcast is already shared (publication held back on this device),
|
||||
/// `x` turns sharing off.
|
||||
ConfirmPodcastShare {
|
||||
podcast_id: music_dht::podcast::PodcastId,
|
||||
title: String,
|
||||
urls: crate::podcasts::publication::ConfirmedUrls,
|
||||
/// Russian descriptions of the privacy warnings.
|
||||
warnings: Vec<String>,
|
||||
already_shared: bool,
|
||||
},
|
||||
/// Enabling network similarity reveals an embedding query to peers.
|
||||
SimilarityPrivacyConsent { enable_federation: bool },
|
||||
/// Derived data is safe to recreate but potentially expensive.
|
||||
@@ -1796,6 +1808,10 @@ pub struct PodcastsTab {
|
||||
pub pending_select: Option<music_dht::podcast::PodcastId>,
|
||||
/// Last episode request sequence handed out.
|
||||
pub episode_seq: u64,
|
||||
/// This device's public discovery publications (last reconciler pass).
|
||||
pub publication: crate::podcasts::publication::PublicationReport,
|
||||
/// A share check or share decision is being written.
|
||||
pub share_busy: HashSet<music_dht::podcast::PodcastId>,
|
||||
}
|
||||
|
||||
impl PodcastsTab {
|
||||
|
||||
Reference in new issue
Block a user