Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021
  1. import ReducerRegistry from '../base/redux/ReducerRegistry';
  2. import { set } from '../base/redux/functions';
  3. import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes';
  4. export interface ITalkWhileMutedState {
  5. currentNotificationUid?: string;
  6. }
  7. /**
  8. * Reduces the redux actions of the feature talk while muted.
  9. */
  10. ReducerRegistry.register<ITalkWhileMutedState>('features/talk-while-muted',
  11. (state = {}, action): ITalkWhileMutedState => {
  12. switch (action.type) {
  13. case SET_CURRENT_NOTIFICATION_UID:
  14. return set(state, 'currentNotificationUid', action.uid);
  15. }
  16. return state;
  17. });