mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
chore(orbit): pending-suggestion strip in guest queue
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -504,6 +504,11 @@ export async function suggestOrbitTrack(trackId: string): Promise<void> {
|
||||
const { songs } = await getPlaylist(outboxPlaylistId);
|
||||
const nextIds = [...songs.map(s => s.id), trackId];
|
||||
await updatePlaylist(outboxPlaylistId, nextIds, songs.length);
|
||||
|
||||
// Record the suggestion locally so the UI can surface it as "waiting on
|
||||
// host" until the host's next sweep merges it into the shared queue.
|
||||
// Drained by the guest tick's reconcilePendingSuggestions call.
|
||||
useOrbitStore.getState().addPendingSuggestion(trackId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user