jiti-meet/react/features/mobile/callkit/reducer.js

16 lines
432 B
JavaScript
Raw Normal View History

2017-09-28 21:25:04 +00:00
import { assign, ReducerRegistry } from '../../base/redux';
2017-09-28 21:25:04 +00:00
import { _SET_CALLKIT_SUBSCRIPTIONS } from './actionTypes';
import CallKit from './CallKit';
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-28 21:25:04 +00:00
return state;
});