Keep confirmed Watch snapshots current

This commit is contained in:
2026-08-17 20:28:18 +02:00
parent c617430149
commit 14c9f8138f
2 changed files with 32 additions and 5 deletions

View File

@@ -747,11 +747,11 @@ impl WatchSnapshotSender {
);
let selected_entries =
u32::try_from(entries.len()).map_err(|_| WatchSnapshotError::TooManyEntries)?;
self.status = MobileWatchSnapshotStatus {
state: MobileWatchSnapshotState::Pending,
revision: Some(self.journal.revision),
detail: snapshot_detail("pending delivery", selected_entries, self.journal.revision),
};
self.status = status_from_journal(&self.journal);
if self.status.state == MobileWatchSnapshotState::Pending {
self.status.detail =
snapshot_detail("pending delivery", selected_entries, self.journal.revision);
}
Ok(WatchSnapshotTransfer {
revision: self.journal.revision,
selected_entries,