Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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