Files
jitsi-meet/react/features/lobby/actions.web.js
Saúl Ibarra Corretgé a6359e5d4c fix(lobby) don't mix web and native actions on the same file
USe actions.any for common actions.
2021-09-23 12:25:30 +02:00

24 lines
554 B
JavaScript

// @flow
import { type Dispatch } from 'redux';
import { maybeRedirectToWelcomePage } from '../app/actions';
export * from './actions.any';
declare var APP: Object;
/**
* Cancels the ongoing knocking and abandons the join flow.
*
* @returns {Function}
*/
export function cancelKnocking() {
return async (dispatch: Dispatch<any>) => {
// when we are redirecting the library should handle any
// unload and clean of the connection.
APP.API.notifyReadyToClose();
dispatch(maybeRedirectToWelcomePage());
};
}