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

View File

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