jiti-meet/react/features/mobile/call-integration/reducer.js

17 lines
535 B
JavaScript

import { assign, ReducerRegistry } from '../../base/redux';
import { _SET_CALL_INTEGRATION_SUBSCRIPTIONS } from './actionTypes';
import CallKit from './CallKit';
import ConnectionService from './ConnectionService';
(CallKit || ConnectionService) && ReducerRegistry.register(
'features/call-integration',
(state = {}, action) => {
switch (action.type) {
case _SET_CALL_INTEGRATION_SUBSCRIPTIONS:
return assign(state, 'subscriptions', action.subscriptions);
}
return state;
});