Be consistent, simplify the source code
This commit is contained in:
parent
d2b2f98941
commit
702144180c
|
@ -11,8 +11,7 @@ import {
|
||||||
* The initial state of 'features/base/lib-jitsi-meet'.
|
* The initial state of 'features/base/lib-jitsi-meet'.
|
||||||
*
|
*
|
||||||
* @type {{
|
* @type {{
|
||||||
* initializationError: null,
|
* config: Object
|
||||||
* initialized: boolean
|
|
||||||
* }}
|
* }}
|
||||||
*/
|
*/
|
||||||
const INITIAL_STATE = {
|
const INITIAL_STATE = {
|
||||||
|
@ -40,9 +39,7 @@ const INITIAL_STATE = {
|
||||||
// third parties and we can temporarily disable them (until we implement
|
// third parties and we can temporarily disable them (until we implement
|
||||||
// an alternative to async script elements on React Native).
|
// an alternative to async script elements on React Native).
|
||||||
disableThirdPartyRequests: true
|
disableThirdPartyRequests: true
|
||||||
},
|
}
|
||||||
initializationError: null,
|
|
||||||
initialized: false
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ReducerRegistry.register(
|
ReducerRegistry.register(
|
||||||
|
@ -55,14 +52,14 @@ ReducerRegistry.register(
|
||||||
case LIB_INIT_ERROR:
|
case LIB_INIT_ERROR:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
initializationError: action.error,
|
initError: action.error,
|
||||||
initialized: false
|
initialized: false
|
||||||
};
|
};
|
||||||
|
|
||||||
case LIB_INITIALIZED:
|
case LIB_INITIALIZED:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
initializationError: null,
|
initError: undefined,
|
||||||
initialized: true
|
initialized: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue