Files
jitsi-meet/react/features/deep-linking/actions.js
hristoterezov eb19f94598 Deeplinking (#2760)
* feat(Deeplinking): Implement for web.

* ref(unsupported_browser): Move the mobile version to deeplinking feature

* feat(deeplinking_mobile): Redesign.

* fix(deeplinking): Use interface.NATIVE_APP_NAME.

* feat(dial_in_summary): Add the PIN to the number link.

* fix(deep_linking): Handle use case when there isn't deep linking image.

* fix(deep_linking): css

* fix(deep_linking): deeplink -> "deep linking"

* fix(deeplinking_css): Remove position: fixed

* docs(deeplinking): Add comment for the openWebApp action.
2018-04-13 17:00:40 -07:00

35 lines
820 B
JavaScript

/* @flow */
import { appNavigate } from '../app';
import { OPEN_DESKTOP_APP, OPEN_WEB_APP } from './actionTypes';
/**
* Continue to the conference page.
*
* @returns {Function}
*/
export function openWebApp() {
return (dispatch: Dispatch<*>) => {
// In order to go to the web app we need to skip the deep linking
// interceptor. OPEN_WEB_APP action should set launchInWeb to true in
// the redux store. After this when appNavigate() is called the
// deep linking interceptor will be skipped (will return undefined).
dispatch({ type: OPEN_WEB_APP });
dispatch(appNavigate());
};
}
/**
* Opens the desktop app.
*
* @returns {{
* type: OPEN_DESKTOP_APP
* }}
*/
export function openDesktopApp() {
return {
type: OPEN_DESKTOP_APP
};
}