forked from Keelrleek/SoulStream
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:
1 parent
0ff65fd9b5
commit
4ca9ab043b
3 files changed
+78
-1
No files matched your search
@@ -202,6 +202,10 @@ pub async fn delete_playlist(
|
||||
lib: State<'_, LibraryState>,
|
||||
id: i64,
|
||||
) -> Result<(), String> {
|
||||
// Before the local truth goes, not after: a share this device can no
|
||||
// longer honour is withdrawn and its ledger row dropped, or the next
|
||||
// playlist to be handed this row id publishes as the one just deleted.
|
||||
crate::shared_playlists::forget_playlist(&app, id).await;
|
||||
let l = lib.library.clone();
|
||||
tauri::async_runtime::spawn_blocking(move || l.delete_playlist(id))
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user