Fix roomId handling

This commit is contained in:
Håvar Aambø Fosstveit
2019-11-10 23:01:45 +01:00
parent b2a7599095
commit aea08b4cbe
8 changed files with 28 additions and 68 deletions
-8
View File
@@ -1,6 +1,5 @@
const initialState =
{
url : null,
name : '',
state : 'new', // new/connecting/connected/disconnected/closed,
locked : false,
@@ -26,13 +25,6 @@ const room = (state = initialState, action) =>
{
switch (action.type)
{
case 'SET_ROOM_URL':
{
const { url } = action.payload;
return { ...state, url };
}
case 'SET_ROOM_NAME':
{
const { name } = action.payload;