Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/visitors/actions.ts

31 lines
634 B

import { I_AM_VISITOR_MODE, UPDATE_VISITORS_COUNT } from './actionTypes';
/**
* Sets Visitors mode on or off.
*
* @param {boolean} enabled - The new visitors mode state.
* @returns {{
* type: I_AM_VISITOR_MODE,
* }}
*/
export function setIAmVisitor(enabled: boolean) {
return {
type: I_AM_VISITOR_MODE,
enabled
};
}
/**
* Visitors count has been updated.
*
* @param {number} count - The new visitors count.
* @returns {{
* type: UPDATE_VISITORS_COUNT,
* }}
*/
export function updateVisitorsCount(count: number) {
return {
type: UPDATE_VISITORS_COUNT,
count
};
}