Publish podcast cards only after the first device sync

A device restarted with a "share" decision that another device of its
group revoked meanwhile sent that card again: the first reconciler pass
called sync_shares from the stale registers before device sync ran.
Until DeviceSync says the registers are current (a sync exchange with a
v4 device of the group after the store was attached, or no such device
to wait for), passes now only unpublish cards the local registers no
longer share and never call sync_shares.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:13:07 +02:00
1 parent ce5697ce1d
commit 409188b9a9
11 files changed
+522 -37

No files matched your search

+4 -1
View File
@@ -132,7 +132,9 @@ fn spawn_scheduler(tx: tokio::sync::mpsc::UnboundedSender<AppEvent>) {
}
/// Starts the publication reconciler. Without a store every own public
/// card is revoked (see `publication::reconcile`).
/// card is revoked (see `publication::reconcile`). Nothing is published
/// before device sync says the share registers are current
/// (`DeviceSync::podcast_registers_current`).
fn spawn_publication(
runtime: &Runtime,
store: Option<Arc<PodcastStore>>,
@@ -141,6 +143,7 @@ fn spawn_publication(
let tx = runtime.event_tx.clone();
publication::spawn(
runtime.federation.podcast_dht(),
runtime.devices.podcast_registers_current(),
store,
confirmations,
move |report| {