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.

123456789101112131415161718192021
  1. import ReducerRegistry from '../../base/redux/ReducerRegistry';
  2. import { set } from '../../base/redux/functions';
  3. import CallKit from './CallKit';
  4. import ConnectionService from './ConnectionService';
  5. import { _SET_CALL_INTEGRATION_SUBSCRIPTIONS } from './actionTypes';
  6. export interface ICallIntegrationState {
  7. subscriptions?: any;
  8. }
  9. (CallKit || ConnectionService) && ReducerRegistry.register<ICallIntegrationState>(
  10. 'features/call-integration',
  11. (state = {}, action): ICallIntegrationState => {
  12. switch (action.type) {
  13. case _SET_CALL_INTEGRATION_SUBSCRIPTIONS:
  14. return set(state, 'subscriptions', action.subscriptions);
  15. }
  16. return state;
  17. });