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.js 867B

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. import type { Dispatch } from 'redux';
  3. import { appNavigate } from '../app/actions';
  4. import { OPEN_DESKTOP_APP, OPEN_WEB_APP } from './actionTypes';
  5. /**
  6. * Continue to the conference page.
  7. *
  8. * @returns {Function}
  9. */
  10. export function openWebApp() {
  11. return (dispatch: Dispatch<any>) => {
  12. // In order to go to the web app we need to skip the deep linking
  13. // interceptor. OPEN_WEB_APP action should set launchInWeb to true in
  14. // the redux store. After this when appNavigate() is called the
  15. // deep linking interceptor will be skipped (will return undefined).
  16. dispatch({ type: OPEN_WEB_APP });
  17. dispatch(appNavigate());
  18. };
  19. }
  20. /**
  21. * Opens the desktop app.
  22. *
  23. * @returns {{
  24. * type: OPEN_DESKTOP_APP
  25. * }}
  26. */
  27. export function openDesktopApp() {
  28. return {
  29. type: OPEN_DESKTOP_APP
  30. };
  31. }