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 480B

12345678910111213141516171819202122
  1. // @flow
  2. import { ReducerRegistry } from '../../base/redux';
  3. import { SCREEN_SHARE_PARTICIPANTS_UPDATED } from './actionTypes';
  4. const DEFAULT_STATE = {
  5. screenShares: []
  6. };
  7. ReducerRegistry.register('features/mobile/external-api', (state = DEFAULT_STATE, action) => {
  8. switch (action.type) {
  9. case SCREEN_SHARE_PARTICIPANTS_UPDATED: {
  10. return {
  11. ...state,
  12. screenShares: action.participantIds
  13. };
  14. }
  15. }
  16. return state;
  17. });