snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
33
react/features/deep-linking/actions.ts
Normal file
33
react/features/deep-linking/actions.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { appNavigate } from '../app/actions';
|
||||
import { IStore } from '../app/types';
|
||||
|
||||
import { OPEN_DESKTOP_APP, OPEN_WEB_APP } from './actionTypes';
|
||||
|
||||
/**
|
||||
* Continue to the conference page.
|
||||
*
|
||||
* @returns {Function}
|
||||
*/
|
||||
export function openWebApp() {
|
||||
return (dispatch: IStore['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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user