Дамян Минков 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

22 lines
514 B
JavaScript

// @flow
import { SET_CURRENT_NOTIFICATION_UID } from './actionTypes';
/**
* Sets UID of the the pending notification to use it when hiding
* the notification is necessary, or unsets it when undefined (or no param) is
* passed.
*
* @param {?number} uid - The UID of the notification.
* @returns {{
* type: SET_CURRENT_NOTIFICATION_UID,
* uid: number
* }}
*/
export function setCurrentNotificationUid(uid: ?number) {
return {
type: SET_CURRENT_NOTIFICATION_UID,
uid
};
}