shared playlists: a deleted playlist takes its share with it, so the next one does not go out wearing its name

This commit is contained in:
KeelrLeek committed 2026-09-04 11:06:34 -05:00
1 parent 0ff65fd9b5
commit 4ca9ab043b
3 files changed
+78 -1

No files matched your search

+8
View File
@@ -76,6 +76,14 @@ pub fn run() {
freenet::init(app.handle());
if let Err(e) = pipeline::init(app.handle()) {
log::error!("library init failed: {e}");
} else {
// After pipeline::init, which is what manages the library:
// a share record whose playlist is gone keeps a key the
// database will hand to the next playlist created.
let h = app.handle().clone();
tauri::async_runtime::spawn(async move {
shared_playlists::reconcile_deleted(&h).await;
});
}
Ok(())
})