You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.js 439B

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