Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

functions.ts 917B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Returns true if the security dialog button should be visible and false otherwise.
  3. *
  4. * @param {Object} options - The parameters needed to determine the security dialog button visibility.
  5. * @returns {boolean}
  6. */
  7. export function isSecurityDialogButtonVisible({
  8. conference,
  9. securityUIConfig,
  10. isModerator,
  11. enabledLobbyModeFlag,
  12. enabledSecurityOptionsFlag,
  13. enabledMeetingPassFlag
  14. }: {
  15. conference: any;
  16. enabledLobbyModeFlag: boolean;
  17. enabledMeetingPassFlag: boolean;
  18. enabledSecurityOptionsFlag: boolean;
  19. isModerator: boolean;
  20. securityUIConfig: { hideLobbyButton?: boolean; };
  21. }) {
  22. const { hideLobbyButton } = securityUIConfig;
  23. const lobbySupported = conference?.isLobbySupported();
  24. const lobby = lobbySupported && isModerator && !hideLobbyButton;
  25. return enabledSecurityOptionsFlag && ((enabledLobbyModeFlag && lobby) || enabledMeetingPassFlag);
  26. }