2017-09-28 21:25:04 +00:00
|
|
|
import { assign, ReducerRegistry } from '../../base/redux';
|
2017-09-08 09:28:44 +00:00
|
|
|
|
2017-09-28 21:25:04 +00:00
|
|
|
import { _SET_CALLKIT_SUBSCRIPTIONS } from './actionTypes';
|
|
|
|
import CallKit from './CallKit';
|
2017-09-08 09:28:44 +00:00
|
|
|
|
2017-09-28 21:25:04 +00:00
|
|
|
CallKit && ReducerRegistry.register(
|
|
|
|
'features/callkit',
|
|
|
|
(state = {}, action) => {
|
|
|
|
switch (action.type) {
|
|
|
|
case _SET_CALLKIT_SUBSCRIPTIONS:
|
|
|
|
return assign(state, 'subscriptions', action.subscriptions);
|
|
|
|
}
|
2017-09-08 09:28:44 +00:00
|
|
|
|
2017-09-28 21:25:04 +00:00
|
|
|
return state;
|
|
|
|
});
|