fix repeat one/repeat all scrobble

This commit is contained in:
Kendall Garner 2025-04-20 10:54:44 -07:00
parent 1555b827ee
commit 0115ecb59b
No known key found for this signature in database
GPG key ID: 9355F387FE765C94

View file

@ -342,8 +342,12 @@ export const useScrobble = () => {
// a single track on repeat one, or one track added to the queue
// multiple times in a row and playback goes normally (no next/previous)
equalityFn: (a, b) =>
// compute whether the song changed
(a[0] as QueueSong)?.uniqueId === (b[0] as QueueSong)?.uniqueId &&
a[2] === b[2],
// compute whether the position changed. This should imply 1
a[2] === b[2] &&
// compute whether the same player: relevant for repeat one and repeat all (one track)
a[3] === b[3],
},
);