snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
28
react/features/security/functions.ts
Normal file
28
react/features/security/functions.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Returns true if the security dialog button should be visible and false otherwise.
|
||||
*
|
||||
* @param {Object} options - The parameters needed to determine the security dialog button visibility.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function isSecurityDialogButtonVisible({
|
||||
conference,
|
||||
securityUIConfig,
|
||||
isModerator,
|
||||
enabledLobbyModeFlag,
|
||||
enabledSecurityOptionsFlag,
|
||||
enabledMeetingPassFlag
|
||||
}: {
|
||||
conference: any;
|
||||
enabledLobbyModeFlag: boolean;
|
||||
enabledMeetingPassFlag: boolean;
|
||||
enabledSecurityOptionsFlag: boolean;
|
||||
isModerator: boolean;
|
||||
securityUIConfig: { hideLobbyButton?: boolean; };
|
||||
}) {
|
||||
const { hideLobbyButton } = securityUIConfig;
|
||||
const lobbySupported = conference?.isLobbySupported();
|
||||
const lobby = lobbySupported && isModerator && !hideLobbyButton;
|
||||
|
||||
|
||||
return enabledSecurityOptionsFlag && ((enabledLobbyModeFlag && lobby) || enabledMeetingPassFlag);
|
||||
}
|
||||
Reference in New Issue
Block a user