Added lastN to global state

This commit is contained in:
Håvar Aambø Fosstveit
2018-10-24 13:03:05 +02:00
parent 5233debdfa
commit a4b70ebaff
3 changed files with 23 additions and 5 deletions
+9 -1
View File
@@ -8,7 +8,8 @@ const initialState =
fullScreenConsumer : null, // ConsumerID
toolbarsVisible : true,
mode : 'democratic',
selectedPeerName : null
selectedPeerName : null,
lastN : null
};
const room = (state = initialState, action) =>
@@ -83,6 +84,13 @@ const room = (state = initialState, action) =>
};
}
case 'SET_LASTN':
{
const { lastN } = action.payload;
return { ...state, lastN };
}
default:
return state;
}