mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-10 17:38:39 +00:00
Also unify the mobile and web features into one, even though internally they still have separate ways to enable the functionality.
30 lines
608 B
JavaScript
30 lines
608 B
JavaScript
// @flow
|
|
|
|
import { ReducerRegistry } from '../base/redux';
|
|
|
|
import { SET_SHARED_VIDEO_STATUS, SET_DISABLE_BUTTON } from './actionTypes';
|
|
|
|
/**
|
|
* Reduces the Redux actions of the feature features/shared-video.
|
|
*/
|
|
ReducerRegistry.register('features/shared-video', (state = {}, action) => {
|
|
const { status, disabled } = action;
|
|
|
|
switch (action.type) {
|
|
case SET_SHARED_VIDEO_STATUS:
|
|
return {
|
|
...state,
|
|
status
|
|
};
|
|
|
|
case SET_DISABLE_BUTTON:
|
|
return {
|
|
...state,
|
|
disabled
|
|
};
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
});
|