snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
25
react/features/invite/actions.native.ts
Normal file
25
react/features/invite/actions.native.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { IStore } from '../app/types';
|
||||
import { addPeopleFeatureControl } from '../base/participants/functions';
|
||||
import { navigate } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
|
||||
import { screen } from '../mobile/navigation/routes';
|
||||
import { beginShareRoom } from '../share-room/actions';
|
||||
|
||||
export * from './actions.any';
|
||||
|
||||
/**
|
||||
* Starts the process for inviting people. Depending on the system config it
|
||||
* may use the system share sheet or the invite people dialog.
|
||||
*
|
||||
* @returns {Function}
|
||||
*/
|
||||
export function doInvitePeople() {
|
||||
return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {
|
||||
const state = getState();
|
||||
|
||||
if (addPeopleFeatureControl(state)) {
|
||||
return navigate(screen.conference.invite);
|
||||
}
|
||||
|
||||
return dispatch(beginShareRoom());
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user