2019-10-03 08:15:49 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { ReducerRegistry, set } from '../base/redux';
|
|
|
|
|
2019-11-22 14:02:59 +00:00
|
|
|
import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
|
2019-10-03 08:15:49 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Reduces the redux actions of the feature no audio signal
|
|
|
|
*/
|
|
|
|
ReducerRegistry.register('features/no-audio-signal', (state = {}, action) => {
|
|
|
|
switch (action.type) {
|
2019-11-22 14:02:59 +00:00
|
|
|
case SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID:
|
2019-10-03 08:15:49 +00:00
|
|
|
return set(state, 'noAudioSignalNotificationUid', action.uid);
|
|
|
|
}
|
|
|
|
|
|
|
|
return state;
|
|
|
|
});
|