You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.native.ts 929B

1234567891011121314151617181920212223
  1. import { IStore } from '../app/types';
  2. import { connect } from '../base/connection/actions.native';
  3. import { navigateRoot } from '../mobile/navigation/rootNavigationContainerRef';
  4. import { screen } from '../mobile/navigation/routes';
  5. import { showVisitorsQueue } from '../visitors/functions';
  6. /**
  7. * Action used to start the conference.
  8. *
  9. * @param {Object} options - The config options that override the default ones (if any).
  10. * @param {boolean} _ignoreJoiningInProgress - If true we won't check the joiningInProgress flag.
  11. * @returns {Function}
  12. */
  13. export function joinConference(options?: Object, _ignoreJoiningInProgress = false) {
  14. return async function(dispatch: IStore['dispatch'], getState: IStore['getState']) {
  15. const _showVisitorsQueue = showVisitorsQueue(getState);
  16. if (_showVisitorsQueue) {
  17. dispatch(connect());
  18. navigateRoot(screen.conference.root);
  19. }
  20. };
  21. }