2019-11-22 14:02:59 +00:00
|
|
|
import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
|
2019-10-03 08:15:49 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets UID of the the pending notification to use it when hiding
|
|
|
|
* the notification is necessary, or unset it when undefined (or no param) is
|
|
|
|
* passed.
|
|
|
|
*
|
|
|
|
* @param {?number} uid - The UID of the notification.
|
|
|
|
* @returns {{
|
2019-11-22 14:02:59 +00:00
|
|
|
* type: SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID,
|
2019-10-03 08:15:49 +00:00
|
|
|
* uid: number
|
|
|
|
* }}
|
|
|
|
*/
|
2022-10-13 08:26:28 +00:00
|
|
|
export function setNoAudioSignalNotificationUid(uid?: string) {
|
2019-10-03 08:15:49 +00:00
|
|
|
return {
|
2019-11-22 14:02:59 +00:00
|
|
|
type: SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID,
|
2019-10-03 08:15:49 +00:00
|
|
|
uid
|
|
|
|
};
|
|
|
|
}
|