mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* feat(visitors): Handling of live conference and queue service. * squash: Small refactor mobile code. * squash: Drop debug log. * chore(deps) lib-jitsi-meet@latest https://github.com/jitsi/lib-jitsi-meet/compare/v1836.0.0+d05325f3...v1839.0.0+ea523fc6 * squash: Adds a count function. * squash: Drop debug print. * squash: Skip if queueService is not enabled. * squash: Avoids double subscribing for visitorsWaiting. * squash: Fixes lint error. * squash: Fixes showing dialog.
24 lines
929 B
TypeScript
24 lines
929 B
TypeScript
import { IStore } from '../app/types';
|
|
import { connect } from '../base/connection/actions.native';
|
|
import { navigateRoot } from '../mobile/navigation/rootNavigationContainerRef';
|
|
import { screen } from '../mobile/navigation/routes';
|
|
import { showVisitorsQueue } from '../visitors/functions';
|
|
|
|
/**
|
|
* Action used to start the conference.
|
|
*
|
|
* @param {Object} options - The config options that override the default ones (if any).
|
|
* @param {boolean} _ignoreJoiningInProgress - If true we won't check the joiningInProgress flag.
|
|
* @returns {Function}
|
|
*/
|
|
export function joinConference(options?: Object, _ignoreJoiningInProgress = false) {
|
|
return async function(dispatch: IStore['dispatch'], getState: IStore['getState']) {
|
|
const _showVisitorsQueue = showVisitorsQueue(getState);
|
|
|
|
if (_showVisitorsQueue) {
|
|
dispatch(connect());
|
|
navigateRoot(screen.conference.root);
|
|
}
|
|
};
|
|
}
|