Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

reducer.js 459B

1234567891011121314151617
  1. // @flow
  2. import { ReducerRegistry, set } from '../base/redux';
  3. import { SET_NOISY_AUDIO_INPUT_NOTIFICATION_UID } from './actionTypes';
  4. /**
  5. * Reduces the redux actions of noise detection feature
  6. */
  7. ReducerRegistry.register('features/noise-detection', (state = {}, action) => {
  8. switch (action.type) {
  9. case SET_NOISY_AUDIO_INPUT_NOTIFICATION_UID:
  10. return set(state, 'noisyAudioInputNotificationUid', action.uid);
  11. }
  12. return state;
  13. });