Added dialog before joining room.
This commit is contained in:
@@ -14,7 +14,8 @@ const initialState =
|
||||
mode : 'democratic',
|
||||
selectedPeerId : null,
|
||||
spotlights : [],
|
||||
settingsOpen : false
|
||||
settingsOpen : false,
|
||||
joined : false
|
||||
};
|
||||
|
||||
const room = (state = initialState, action) =>
|
||||
@@ -88,6 +89,13 @@ const room = (state = initialState, action) =>
|
||||
return { ...state, showSettings };
|
||||
}
|
||||
|
||||
case 'TOGGLE_JOINED':
|
||||
{
|
||||
const joined = !state.joined;
|
||||
|
||||
return { ...state, joined };
|
||||
}
|
||||
|
||||
case 'TOGGLE_FULLSCREEN_CONSUMER':
|
||||
{
|
||||
const { consumerId } = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user