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 845B

12345678910111213141516171819202122232425
  1. import { IStore } from '../app/types';
  2. import { addPeopleFeatureControl } from '../base/participants/functions';
  3. import { navigate } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
  4. import { screen } from '../mobile/navigation/routes';
  5. import { beginShareRoom } from '../share-room/actions';
  6. export * from './actions.any';
  7. /**
  8. * Starts the process for inviting people. Depending on the system config it
  9. * may use the system share sheet or the invite people dialog.
  10. *
  11. * @returns {Function}
  12. */
  13. export function doInvitePeople() {
  14. return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {
  15. const state = getState();
  16. if (addPeopleFeatureControl(state)) {
  17. return navigate(screen.conference.invite);
  18. }
  19. return dispatch(beginShareRoom());
  20. };
  21. }