jiti-meet/react/features/no-audio-signal/actions.js

22 lines
543 B
JavaScript
Raw Normal View History

// @flow
2019-11-22 14:02:59 +00:00
import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
/**
* 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,
* uid: number
* }}
*/
export function setNoAudioSignalNotificationUid(uid: ?number) {
return {
2019-11-22 14:02:59 +00:00
type: SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID,
uid
};
}