Don't show "playing/paused" icon on the first song when calling "Play Now"

This commit is contained in:
Deluan 2021-07-05 21:45:20 -04:00 committed by Joe Stump
parent 8b1d6e16be
commit 1814bfefc1
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -110,15 +110,8 @@ const reduceSetVolume = (state, { data: { volume } }) => {
}
const reduceSyncQueue = (state, { data: { audioInfo, audioLists } }) => {
const current = audioLists.length > 0 ? audioInfo : {}
const savedPlayIndex = audioLists.findIndex(
(item) => item.uuid === current.uuid
)
return {
...state,
current,
savedPlayIndex,
queue: audioLists,
clear: false,
playIndex: undefined,