Add additional controls to playerbar

This commit is contained in:
jeffvli 2023-01-30 02:39:25 -08:00
parent 5ddd0872ef
commit 85bf910d65
3 changed files with 238 additions and 49 deletions

View file

@ -659,6 +659,15 @@ export const usePlayerStore = create<PlayerSlice>()(
}
}
const currentSongId = get().current.song?.id;
if (currentSongId && ids.includes(currentSongId)) {
set((state) => {
if (state.current.song) {
state.current.song.userFavorite = favorite;
}
});
}
return foundUniqueIds;
},
setMuted: (muted: boolean) => {