niehusst/partyq-android

skip vote not working

Closed this issue · 2 comments

after 2 devices get into a party:

  1. host ends party
  2. previous guest starts new party as host
  3. previous host joins party as guest
  4. add some songs to queue
  5. try skipping songs (each user take turns being first to try skipping song)

You may notice that sometimes even if both users vote to skip, the song wont skip OR only one of the users needs to vote skip for a song to skip

best guess at error cause rn is that when host leaves the party, the IS_HOST shared pref remains true (as data hasn't been wiped from closing the app) when they join a new party as a guest. This could cause some weirdness, certainly...

try removing/rewriting IS_HOST from shared prefs on disconnect() and see if errors still reproducible

testing became difficult due to weird interaction between the same Spotify account being signed into both test devices. Uncertain if this could also be a source of error.