您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.js 611B

12345678910111213141516171819202122
  1. // @flow
  2. import { CONFERENCE_INFO } from './constants';
  3. /**
  4. * Retrieves the conference info labels based on config values and defaults.
  5. *
  6. * @param {Object} state - The redux state.
  7. * @returns {Object} The conferenceInfo object.
  8. */
  9. export const getConferenceInfo = (state: Object) => {
  10. const { conferenceInfo } = state['features/base/config'];
  11. if (conferenceInfo) {
  12. return {
  13. alwaysVisible: conferenceInfo.alwaysVisible ?? CONFERENCE_INFO.alwaysVisible,
  14. autoHide: conferenceInfo.autoHide ?? CONFERENCE_INFO.autoHide
  15. };
  16. }
  17. return CONFERENCE_INFO;
  18. };