Removed picture from localstorage.

master
Håvar Aambø Fosstveit 2019-10-24 12:56:31 +02:00
parent 01ea8b05d5
commit 76c6b5121e
2 changed files with 4 additions and 6 deletions

View File

@ -2,6 +2,7 @@ const initialState =
{
id : null,
device : null,
picture : null,
canSendMic : false,
canSendWebcam : false,
canShareScreen : false,
@ -43,6 +44,9 @@ const me = (state = initialState, action) =>
case 'USER_LOGOUT':
return { ...state, loggedIn: false };
case 'SET_PICTURE':
return { ...state, picture: action.payload.picture };
case 'SET_MEDIA_CAPABILITIES':
{
const {

View File

@ -1,7 +1,6 @@
const initialState =
{
displayName : 'Guest',
picture : null,
selectedWebcam : null,
selectedAudioDevice : null,
advancedMode : false,
@ -29,11 +28,6 @@ const settings = (state = initialState, action) =>
return { ...state, displayName };
}
case 'SET_PICTURE':
{
return { ...state, picture: action.payload.picture };
}
case 'TOGGLE_ADVANCED_MODE':
{
const advancedMode = !state.advancedMode;