Have backend also keep track of users who voted on a track to prevent duplicate voting. Add vote count next to vote button. Make sure these details are correct, event on refresh.
This commit is contained in:
@@ -51,6 +51,7 @@ public:
|
||||
AudioTrack currentTrack;
|
||||
std::list<AudioTrack> currentVoteBatch;
|
||||
std::list<std::pair<AudioTrack, int>> currentVoteStatus;
|
||||
std::list<User> currentUsersVoted;
|
||||
bool voteEndedButNotNextTrackYet = false;
|
||||
std::list<User> currentSkipRequester;
|
||||
std::chrono::steady_clock::time_point skipRequestedAt;
|
||||
|
||||
Reference in New Issue
Block a user