Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. }