Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(visitors): add showJoinMeetingDialog config option (#16540)
Mihaela Dumitru641b52c51ddc
diff --git a/config.js b/config.jsindex f908a04328..f567b32e29 100644--- a/config.js+++ b/config.js@@ -1609,6 +1609,8 @@ var config = {// },// // Hides the visitor count for visitors.// // hideVisitorCountForVisitors: false,+ // // Whether to show the join meeting dialog when joining as a visitor.+ // // showJoinMeetingDialog: true,// },// The default type of desktop sharing sources that will be used in the electron app.// desktopSharingSources: ['screen', 'window'],diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.tsindex 18918509f8..5eb8ab1977 100644--- a/react/features/base/config/configType.ts+++ b/react/features/base/config/configType.ts@@ -656,6 +656,7 @@ export interface IConfig {};hideVisitorCountForVisitors?: boolean;queueService: string;+ showJoinMeetingDialog?: boolean;};watchRTCConfigParams?: IWatchRTCConfiguration;webhookProxyUrl?: string;diff --git a/react/features/base/config/configWhitelist.ts b/react/features/base/config/configWhitelist.tsindex 72a2210748..8484477bec 100644--- a/react/features/base/config/configWhitelist.ts+++ b/react/features/base/config/configWhitelist.ts@@ -239,6 +239,7 @@ export default ['videoQuality','visitors.enableMediaOnPromote','visitors.hideVisitorCountForVisitors',+ 'visitors.showJoinMeetingDialog','watchRTCConfigParams.allowBrowserLogCollection','watchRTCConfigParams.collectionInterval','watchRTCConfigParams.console',diff --git a/react/features/visitors/middleware.ts b/react/features/visitors/middleware.tsindex 3e1e0703b4..216f43c8b5 100644--- a/react/features/visitors/middleware.ts+++ b/react/features/visitors/middleware.ts@@ -64,6 +64,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {if (getState()['features/visitors'].iAmVisitor) {const { demoteActorDisplayName } = getState()['features/visitors'];+ const { showJoinMeetingDialog = true } = getState()['features/base/config'].visitors || {};if (demoteActorDisplayName) {const notificationParams: INotificationProps = {@@ -78,7 +79,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {dispatch(showNotification(notificationParams, NOTIFICATION_TIMEOUT_TYPE.STICKY));dispatch(setVisitorDemoteActor(undefined));});- } else {+ } else if (showJoinMeetingDialog) {dispatch(openDialog(JoinMeetingDialog));}