Small fixes and requireSignIn now working.

This commit is contained in:
Håvar Aambø Fosstveit
2019-10-24 12:43:11 +02:00
parent 5adb08e184
commit f38c5e38c5
9 changed files with 127 additions and 38 deletions
+5 -3
View File
@@ -3,7 +3,7 @@ const initialState =
url : null,
state : 'new', // new/connecting/connected/disconnected/closed,
locked : false,
lockedOut : false,
enteredLobby : 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,
@@ -51,9 +51,11 @@ const room = (state = initialState, action) =>
return { ...state, locked: false };
}
case 'SET_ROOM_LOCKED_OUT':
case 'SET_IN_LOBBY':
{
return { ...state, lockedOut: true };
const { inLobby } = action.payload;
return { ...state, inLobby };
}
case 'SET_ACCESS_CODE':