Skip to content

Comments

Allow all players to see "waiting for votes" message#722

Open
bjb568 wants to merge 1 commit intovck3000:masterfrom
bjb568:patch-1
Open

Allow all players to see "waiting for votes" message#722
bjb568 wants to merge 1 commit intovck3000:masterfrom
bjb568:patch-1

Conversation

@bjb568
Copy link
Contributor

@bjb568 bjb568 commented Dec 8, 2024

Code has not been tested, but the change is simple, it just removes the if statement.

Comment on lines -166 to -172
// If user has voted already
if (
indexOfPlayer !== undefined &&
this.thisRoom.playersYetToVote.indexOf(
this.thisRoom.playersInGame[indexOfPlayer].username,
) === -1
) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the "If user has voted already" branch was identical to the "If we are spectator" branch so the entire function can be replaced with the contents of either branch.

@vck3000
Copy link
Owner

vck3000 commented Dec 30, 2025

I'm keen to revisit this. Could you resolve the conflict and give it a test if you're able to please?

Thanks :)

@bjb568
Copy link
Contributor Author

bjb568 commented Dec 30, 2025

@vck3000 It should be good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants