jiti-meet/react/features/no-audio-signal/reducer.js

18 lines
457 B
JavaScript
Raw Normal View History

// @flow
import { ReducerRegistry, set } from '../base/redux';
2019-11-22 14:02:59 +00:00
import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
/**
* 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:
return set(state, 'noAudioSignalNotificationUid', action.uid);
}
return state;
});