Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(deeplinking): Pass state to openDesktopApp.
Hristo Terezov651791b8df81
diff --git a/react/features/deep-linking/functions.js b/react/features/deep-linking/functions.jsindex f26b9e98ec..d4de8cfbf3 100644--- a/react/features/deep-linking/functions.js+++ b/react/features/deep-linking/functions.js@@ -75,7 +75,7 @@ export function getDeepLinkingPage(state) {return Promise.resolve();}- return _openDesktopApp().then(+ return _openDesktopApp(state).then(// eslint-disable-next-line no-confusing-arrowresult => result ? DeepLinkingDesktopPage : undefined);}@@ -83,9 +83,10 @@ export function getDeepLinkingPage(state) {/*** Opens the desktop app.*+ * @param {Object} state - Object containing current redux state.* @returns {Promise<boolean>} - Resolves with true if the attempt to open the desktop app was successful and resolves* with false otherwise.*/-export function openDesktopApp() {- return _openDesktopApp();+export function openDesktopApp(state) {+ return _openDesktopApp(state);}diff --git a/react/features/deep-linking/middleware.js b/react/features/deep-linking/middleware.jsindex 6facca5675..6e4111c7f5 100644--- a/react/features/deep-linking/middleware.js+++ b/react/features/deep-linking/middleware.js@@ -15,7 +15,7 @@ import { openDesktopApp } from './functions';MiddlewareRegistry.register(store => next => action => {switch (action.type) {case OPEN_DESKTOP_APP:- openDesktopApp();+ openDesktopApp(store.getState());break;}diff --git a/react/features/deep-linking/openDesktopApp.js b/react/features/deep-linking/openDesktopApp.jsindex 3df29ab386..7aa6e6c9f8 100644--- a/react/features/deep-linking/openDesktopApp.js+++ b/react/features/deep-linking/openDesktopApp.js@@ -1,9 +1,12 @@+// @flow+/*** Opens the desktop app.*+ * @param {Object} state - Object containing current redux state.* @returns {Promise<boolean>} - Resolves with true if the attempt to open the desktop app was successful and resolves* with false otherwise.*/-export function _openDesktopApp() {+export function _openDesktopApp(state: Object) { // eslint-disable-line no-unused-varsreturn Promise.resolve(false);}