Added dialog before joining room.

This commit is contained in:
Håvar Aambø Fosstveit committed 2019-06-12 15:33:35 +02:00
1 parent c46bcb7bdc
commit 041a90599d
5 files changed
+115 -70

No files matched your search

+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;