Added dialog before joining room.

This commit is contained in:
Håvar Aambø Fosstveit
2019-06-12 15:33:35 +02:00
parent c46bcb7bdc
commit 041a90599d
5 changed files with 115 additions and 70 deletions
+9 -1
View File
@@ -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;