Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

actions.js 820B

12345678910111213141516171819202122232425262728293031323334
  1. /* @flow */
  2. import { appNavigate } from '../app';
  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: 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. }