Browse Source

fix: Count participating users in vote to skip users only when they have voted

Owen Diffey 1 year ago
parent
commit
56cc25352c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      backend/logic/stations.js

+ 2 - 1
backend/logic/stations.js

@@ -940,7 +940,8 @@ class _StationsModule extends CoreClass {
 										if (socket && socket.session && socket.session.userId) {
 											if (
 												!users.includes(socket.session.userId) &&
-												socket.session.stationState !== "participate"
+												(socket.session.stationState !== "participate" ||
+													station.currentSong.skippedAt.includes(socket.session.userId))
 											)
 												users.push(socket.session.userId);
 										}