You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.js 494B

12345678910111213141516171819202122
  1. import { ReducerRegistry } from '../base/redux';
  2. import { SET_SCREEN_AUDIO_SHARE_STATE } from './actionTypes';
  3. /**
  4. * Reduces the Redux actions of the feature features/screen-share.
  5. */
  6. ReducerRegistry.register('features/screen-share', (state = {}, action) => {
  7. const { isSharingAudio } = action;
  8. switch (action.type) {
  9. case SET_SCREEN_AUDIO_SHARE_STATE:
  10. return {
  11. ...state,
  12. isSharingAudio
  13. };
  14. default:
  15. return state;
  16. }
  17. });