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:
Kevin Whitaker
2017-02-19 12:43:35 -05:00
parent 161e408a47
commit 48a33d31ec
5 changed files with 49 additions and 4 deletions

View File

@@ -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;