Дамян Минков 11f2e7291e
Talk while muted sound notification (#4473)
* Moves talk while muted as a new feature.

* Adds sound notification for talk while muted.

* Reorder imports and changes the dispatch of the notification.

* Introduces sounds.js for talk while muted.
2019-07-23 21:56:05 +01:00

18 lines
439 B
JavaScript

// @flow
import { ReducerRegistry, set } from '../base/redux';
import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes';
/**
* Reduces the redux actions of the feature talk while muted.
*/
ReducerRegistry.register('features/talk-while-muted', (state = { }, action) => {
switch (action.type) {
case SET_CURRENT_NOTIFICATION_UID:
return set(state, 'currentNotificationUid', action.uid);
}
return state;
});