jiti-meet/react/features/noise-detection/actions.ts

20 lines
541 B
TypeScript

import { SET_NOISY_AUDIO_INPUT_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 {{
* type: SET_NOISY_AUDIO_INPUT_NOTIFICATION_UID,
* uid: number
* }}
*/
export function setNoisyAudioInputNotificationUid(uid?: string) {
return {
type: SET_NOISY_AUDIO_INPUT_NOTIFICATION_UID,
uid
};
}