snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
23
react/features/prejoin/actions.native.ts
Normal file
23
react/features/prejoin/actions.native.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { IStore } from '../app/types';
|
||||
import { connect } from '../base/connection/actions.native';
|
||||
import { replaceRoot } 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());
|
||||
replaceRoot(screen.conference.root);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user