Swipe to play next while playing last song in the queue dosen't add new song below, adds it above

App version

Production

Issue description

In a music queue. When i swipe right it gets added after the currently playing song properly. But if the currently playing song is the last song in the queue, swiping on songs to play next gets added before the currently playing song.

Device type

Phone

Media provider

Navidrome

Steps to reproduce

  1. Open app
  2. Play any playlist/favourites/album, not individual track.
  3. Open the queue. Swipe on a song, to make it play next, it will get added below the currnetly playing song.
  4. Select to play the last song in the queue, and now try swiping on any other songs to play next, it gets added above the currently playing song, not below.

Additional information

I have also shared a email initially with a screen recording from REDACTED

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

toocels_queueing_bug_maybe