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

functions.native.js 675B

1234567891011121314151617181920
  1. // @flow
  2. import { toState } from '../base/redux';
  3. /**
  4. * Returns true if the filmstrip on mobile is visible, false otherwise.
  5. *
  6. * NOTE: Filmstrip on mobile behaves differently to web, and is only visible
  7. * when there are at least 2 participants.
  8. *
  9. * @param {Object | Function} stateful - The Object or Function that can be
  10. * resolved to a Redux state object with the toState function.
  11. * @returns {boolean}
  12. */
  13. export function isFilmstripVisible(stateful: Object | Function) {
  14. const state = toState(stateful);
  15. const { length: participantCount } = state['features/base/participants'];
  16. return state['features/filmstrip'].visible && participantCount > 1;
  17. }