fn sweep_theirs(
sharing: &Sharing<'_>,
stores: &[Store],
memory: &mut Memory,
counted: &[(String, Counted)],
theirs_now: Vec<(String, String)>,
current_before: &BTreeSet<String>,
now_ms: i64,
)Expand description
The others’ contents of notes and papers that stopped being current in
this exchange (theirs_now: replaced, taken out, or passed by a later
change read in it), noted (Sealed::theirs); and those whose writer no
longer counts by a sealed fact (Counted::departed: it left, you forgot
it, another replaces it) swept, since that writer never sweeps them again
(a phone dead for good), with the care blobs::sweep takes of this
device’s own (blobs::sweep_after): unused unused_days since their last
use here, never fresh in the folder (another device uses that content
again, blobs::put), never one a current record names (a note’s, a change
waiting, one the others named lately, one this device sealed itself, the
texts’ media: texts_media), and nothing at all while the texts’ media
are not known here, nor while a part whose files are sealed apart is not
shared here (FILE_PARTS): the records of a part a device does not share
are passed over, and a current paper with the same bytes as a departed
device’s replaced note would go (review of 17 October 2026, L1). Each
one swept is said for the server (Memory::taken).
A device that counts sweeps them, each its own folder; two at once find
it gone, and their sending a file gone (404) or changed (412).