Added name for room in state on clientside
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const initialState =
|
||||
{
|
||||
url : null,
|
||||
name : '',
|
||||
state : 'new', // new/connecting/connected/disconnected/closed,
|
||||
locked : false,
|
||||
inLobby : false,
|
||||
@@ -31,6 +32,13 @@ const room = (state = initialState, action) =>
|
||||
return { ...state, url };
|
||||
}
|
||||
|
||||
case 'SET_ROOM_NAME':
|
||||
{
|
||||
const { name } = action.payload;
|
||||
|
||||
return { ...state, name };
|
||||
}
|
||||
|
||||
case 'SET_ROOM_STATE':
|
||||
{
|
||||
const roomState = action.payload.state;
|
||||
|
||||
Reference in New Issue
Block a user