Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

584 B
Raw Blame
import { batch } from 'react-redux';

import { appNavigate } from '../app/actions.native';
import { IStore } from '../app/types';

import { hideLobbyScreen, setKnockingState } from './actions.any';

export * from './actions.any';

/**
 * Cancels the ongoing knocking and abandons the join flow.
 *
 * @returns {Function}
 */
export function cancelKnocking() {
    return (dispatch: IStore['dispatch']) => {
        batch(() => {
            dispatch(setKnockingState(false));
            dispatch(hideLobbyScreen());
            dispatch(appNavigate(undefined));
        });
    };
}