added signInRequired in joinDialog

This commit is contained in:
Stefan Otto
2019-10-31 00:22:47 +01:00
parent a8c6169945
commit 59617aa2ad
6 changed files with 44 additions and 1 deletions
+8
View File
@@ -5,6 +5,7 @@ const initialState =
state : 'new', // new/connecting/connected/disconnected/closed,
locked : false,
inLobby : false,
signInRequired : false,
accessCode : '', // access code to the room if locked and joinByAccessCode == true
joinByAccessCode : true, // if true: accessCode is a possibility to open the room
activeSpeakerId : null,
@@ -66,6 +67,13 @@ const room = (state = initialState, action) =>
return { ...state, inLobby };
}
case 'SET_SIGN_IN_REQUIRED':
{
const { signInRequired } = action.payload;
return { ...state, signInRequired };
}
case 'SET_ACCESS_CODE':
{
const { accessCode } = action.payload;