Added limit for maximum number of users in a single room

This commit is contained in:
Astagor
2020-05-04 19:31:50 +02:00
parent 4acedad987
commit ac6ee1bfa3
23 changed files with 61 additions and 0 deletions
+6
View File
@@ -6,6 +6,7 @@ const initialState =
locked : false,
inLobby : false,
signInRequired : false,
overRoomLimit : false,
// access code to the room if locked and joinByAccessCode == true
accessCode : '',
// if true: accessCode is a possibility to open the room
@@ -88,7 +89,12 @@ const room = (state = initialState, action) =>
return { ...state, signInRequired };
}
case 'SET_OVER_ROOM_LIMIT':
{
const { overRoomLimit } = action.payload;
return { ...state, overRoomLimit };
}
case 'SET_ACCESS_CODE':
{
const { accessCode } = action.payload;