diff options
Diffstat (limited to 'app/features/settings/reducer.js')
-rw-r--r-- | app/features/settings/reducer.js | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/app/features/settings/reducer.js b/app/features/settings/reducer.js index cb9afec..7c99241 100644 --- a/app/features/settings/reducer.js +++ b/app/features/settings/reducer.js @@ -2,37 +2,23 @@ import { SET_ALWAYS_ON_TOP_WINDOW_ENABLED, - SET_AUDIO_MUTED, SET_DISABLE_AGC, - SET_EMAIL, - SET_NAME, SET_SERVER_URL, - SET_SERVER_TIMEOUT, - SET_VIDEO_MUTED + SET_SERVER_TIMEOUT } from './actionTypes'; type State = { alwaysOnTopWindowEnabled: boolean, disableAGC: boolean, - email: string, - name: string, serverURL: ?string, - serverTimeout: ?number, - startWithAudioMuted: boolean, - startWithVideoMuted: boolean + serverTimeout: ?number }; -const username = window.jitsiNodeAPI.osUserInfo().username; - const DEFAULT_STATE = { alwaysOnTopWindowEnabled: true, disableAGC: false, - email: '', - name: username, serverURL: undefined, - serverTimeout: undefined, - startWithAudioMuted: false, - startWithVideoMuted: false + serverTimeout: undefined }; /** @@ -50,30 +36,12 @@ export default (state: State = DEFAULT_STATE, action: Object) => { alwaysOnTopWindowEnabled: action.alwaysOnTopWindowEnabled }; - case SET_AUDIO_MUTED: - return { - ...state, - startWithAudioMuted: action.startWithAudioMuted - }; - case SET_DISABLE_AGC: return { ...state, disableAGC: action.disableAGC }; - case SET_EMAIL: - return { - ...state, - email: action.email - }; - - case SET_NAME: - return { - ...state, - name: action.name - }; - case SET_SERVER_URL: return { ...state, @@ -86,12 +54,6 @@ export default (state: State = DEFAULT_STATE, action: Object) => { serverTimeout: action.serverTimeout }; - case SET_VIDEO_MUTED: - return { - ...state, - startWithVideoMuted: action.startWithVideoMuted - }; - default: return state; } |