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(dialog): Adds name to all dialogs. (#16626)
Дамян Минков1aca8ab985b1
diff --git a/react/features/authentication/actions.any.ts b/react/features/authentication/actions.any.tsindex 659a5c9520..15152ecc35 100644--- a/react/features/authentication/actions.any.ts+++ b/react/features/authentication/actions.any.ts@@ -139,7 +139,7 @@ function _upgradeRoleStarted(thenableWithCancel: Object) {* @returns {Function}*/export function hideLoginDialog() {- return hideDialog(LoginDialog);+ return hideDialog('LoginDialog', LoginDialog);}/**@@ -199,7 +199,7 @@ export function enableModeratorLogin() {* @returns {Action}*/export function openWaitForOwnerDialog() {- return openDialog(WaitForOwnerDialog);+ return openDialog('WaitForOwnerDialog', WaitForOwnerDialog);}@@ -240,7 +240,7 @@ export function waitForOwner() {* @returns {Action}*/export function openLoginDialog() {- return openDialog(LoginDialog);+ return openDialog('LoginDialog', LoginDialog);}/**diff --git a/react/features/authentication/actions.web.ts b/react/features/authentication/actions.web.tsindex 17c3221138..6f026f6ec9 100644--- a/react/features/authentication/actions.web.ts+++ b/react/features/authentication/actions.web.ts@@ -65,7 +65,7 @@ export function openTokenAuthUrl(tokenAuthServiceUrl: string): any {// Show warning for leaving conference only when in a conference.if (!browser.isElectron() && getState()['features/base/conference'].conference) {- dispatch(openDialog(LoginQuestionDialog, {+ dispatch(openDialog('LoginQuestionDialog', LoginQuestionDialog, {handler: () => {// Give time for the dialog to close.setTimeout(() => redirect(), 500);diff --git a/react/features/authentication/middleware.ts b/react/features/authentication/middleware.tsindex 888cc8e8e4..b4ca7f3106 100644--- a/react/features/authentication/middleware.ts+++ b/react/features/authentication/middleware.ts@@ -209,7 +209,7 @@ MiddlewareRegistry.register(store => next => action => {case STOP_WAIT_FOR_OWNER:_clearExistingWaitForOwnerTimeout(store);- store.dispatch(hideDialog(WaitForOwnerDialog));+ store.dispatch(hideDialog('WaitForOwnerDialog', WaitForOwnerDialog));break;case UPGRADE_ROLE_FINISHED: {diff --git a/react/features/base/dialog/actions.ts b/react/features/base/dialog/actions.tsindex e3b18e9906..64ae5d3dd6 100644--- a/react/features/base/dialog/actions.ts+++ b/react/features/base/dialog/actions.ts@@ -14,6 +14,7 @@ import logger from './logger';/*** Signals Dialog to close its dialog.*+ * @param {string|undefined} name - The name of the component for logging purposes.* @param {Object} [component] - The {@code Dialog} component to close/hide. If* {@code undefined}, closes/hides {@code Dialog} regardless of which* component it's rendering; otherwise, closes/hides {@code Dialog} only if@@ -23,8 +24,8 @@ import logger from './logger';* component: (React.Component | undefined)* }}*/-export function hideDialog(component?: ComponentType<any>) {- logger.info(`Hide dialog: ${getComponentDisplayName(component)}`);+export function hideDialog(name?: string, component?: ComponentType<any>) {+ logger.info(`Hide dialog: ${name}`);return {type: HIDE_DIALOG,@@ -48,6 +49,7 @@ export function hideSheet() {/*** Signals Dialog to open dialog.*+ * @param {string} name - The name of the component for logging purposes.* @param {Object} component - The component to display as dialog.* @param {Object} [componentProps] - The React {@code Component} props of the* specified {@code component}.@@ -57,8 +59,8 @@ export function hideSheet() {* componentProps: (Object | undefined)* }}*/-export function openDialog(component: ComponentType<any>, componentProps?: Object) {- logger.info(`Open dialog: ${getComponentDisplayName(component)}`);+export function openDialog(name: string, component: ComponentType<any>, componentProps?: Object) {+ logger.info(`Open dialog: ${name}`);return {type: OPEN_DIALOG,@@ -92,35 +94,18 @@ export function openSheet(component: ComponentType<any>, componentProps?: Object* is not already open. If it is open, then Dialog is signaled to close its* dialog.*+ * @param {string} name - The name of the component for logging purposes.* @param {Object} component - The component to display as dialog.* @param {Object} [componentProps] - The React {@code Component} props of the* specified {@code component}.* @returns {Function}*/-export function toggleDialog(component: ComponentType<any>, componentProps?: Object) {+export function toggleDialog(name: string, component: ComponentType<any>, componentProps?: Object) {return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {if (isDialogOpen(getState, component)) {- dispatch(hideDialog(component));+ dispatch(hideDialog(name, component));} else {- dispatch(openDialog(component, componentProps));+ dispatch(openDialog(name, component, componentProps));}};}--/**- * Extracts a printable name for a dialog component.- *- * @param {Object} component - The component to extract the name for.- *- * @returns {string} The display name.- */-function getComponentDisplayName(component?: ComponentType<any>) {- if (!component) {- return '';- }-- const name = component.displayName ?? component.name ?? 'Component';-- return name.replace('withI18nextTranslation(Connect(', '') // dialogs with translations- .replace('))', ''); // dialogs with translations suffix-}diff --git a/react/features/base/media/middleware.web.ts b/react/features/base/media/middleware.web.tsindex a0bde1660c..8969edf3ef 100644--- a/react/features/base/media/middleware.web.ts+++ b/react/features/base/media/middleware.web.ts@@ -26,7 +26,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: AnyAcase SET_VIDEO_MUTED: {if (LocalRecordingManager.isRecordingLocally() && LocalRecordingManager.selfRecording.on) {if (action.muted && LocalRecordingManager.selfRecording.withVideo) {- dispatch(openDialog(StopRecordingDialog, { localRecordingVideoStop: true }));+ dispatch(openDialog('StopRecordingDialog', StopRecordingDialog, { localRecordingVideoStop: true }));return;} else if (!action.muted && !LocalRecordingManager.selfRecording.withVideo) {diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.tsindex 3c983c944e..18ea717d6f 100644--- a/react/features/base/tracks/actions.web.ts+++ b/react/features/base/tracks/actions.web.ts@@ -294,7 +294,7 @@ export function setCameraFacingMode(facingMode: string | undefined) {* @returns {Object} - The open dialog action.*/export function openAllowToggleCameraDialog(onAllow: Function, initiatorId: string) {- return openDialog(AllowToggleCameraDialog, {+ return openDialog('AllowToggleCameraDialog', AllowToggleCameraDialog, {onAllow,initiatorId});diff --git a/react/features/breakout-rooms/components/native/BreakoutRoomContextMenu.tsx b/react/features/breakout-rooms/components/native/BreakoutRoomContextMenu.tsxindex 47994b1cd3..6f938733e2 100644--- a/react/features/breakout-rooms/components/native/BreakoutRoomContextMenu.tsx+++ b/react/features/breakout-rooms/components/native/BreakoutRoomContextMenu.tsx@@ -58,7 +58,7 @@ const BreakoutRoomContextMenu = ({ room, actions = ALL_ACTIONS }: IProps) => {}, [ dispatch, room ]);const onRenameBreakoutRoom = useCallback(() => {- dispatch(openDialog(BreakoutRoomNamePrompt, {+ dispatch(openDialog('BreakoutRoomNamePrompt', BreakoutRoomNamePrompt, {breakoutRoomJid: room.jid,initialRoomName: room.name}));diff --git a/react/features/calendar-sync/actions.native.ts b/react/features/calendar-sync/actions.native.tsindex a3a0e76980..28cf78237a 100644--- a/react/features/calendar-sync/actions.native.ts+++ b/react/features/calendar-sync/actions.native.ts@@ -22,7 +22,7 @@ export * from './actions.any';* }}*/export function openUpdateCalendarEventDialog(eventId: string) {- return openDialog(UpdateCalendarEventDialog, { eventId });+ return openDialog('UpdateCalendarEventDialog', UpdateCalendarEventDialog, { eventId });}/**diff --git a/react/features/chat/middleware.ts b/react/features/chat/middleware.tsindex b44b1f7496..f9b0084953 100644--- a/react/features/chat/middleware.ts+++ b/react/features/chat/middleware.ts@@ -263,7 +263,7 @@ MiddlewareRegistry.register(store => next => action => {const participantExists = getParticipantById(state, shouldSendPrivateMessageTo.id);if (participantExists || shouldSendPrivateMessageTo.isFromVisitor) {- dispatch(openDialog(ChatPrivacyDialog, {+ dispatch(openDialog('ChatPrivacyDialog', ChatPrivacyDialog, {message: action.message,participantID: shouldSendPrivateMessageTo.id,isFromVisitor: shouldSendPrivateMessageTo.isFromVisitor,diff --git a/react/features/conference/actions.native.ts b/react/features/conference/actions.native.tsindex 06528f7f91..8ccd395666 100644--- a/react/features/conference/actions.native.ts+++ b/react/features/conference/actions.native.ts@@ -22,7 +22,7 @@ export function notifyKickedOut(participant: any, submit?: Function) {return;}- dispatch(openDialog(AlertDialog, {+ dispatch(openDialog('AlertDialog', AlertDialog, {contentKey: {key: participant ? 'dialog.kickTitle' : 'dialog.kickSystemTitle',params: {@@ -52,7 +52,7 @@ export function notifyConferenceFailed(reasonKey: string, submit?: Function) {// we have to push the opening of the dialog to the queue// so that we make sure it will be visible after the events// of conference destroyed are done- setTimeout(() => dispatch(openDialog(AlertDialog, {+ setTimeout(() => dispatch(openDialog('AlertDialog', AlertDialog, {contentKey: {key: reasonKey},@@ -60,7 +60,7 @@ export function notifyConferenceFailed(reasonKey: string, submit?: Function) {},onSubmit: () => {submit?.();- dispatch(hideDialog(AlertDialog));+ dispatch(hideDialog('AlertDialog', AlertDialog));}})));};diff --git a/react/features/conference/actions.web.ts b/react/features/conference/actions.web.tsindex 84e4ae3af3..7697f665ac 100644--- a/react/features/conference/actions.web.ts+++ b/react/features/conference/actions.web.ts@@ -17,7 +17,7 @@ import logger from './logger';*/export function openLeaveReasonDialog(title?: string) {return (dispatch: IStore['dispatch']): Promise<void> => new Promise(resolve => {- dispatch(openDialog(LeaveReasonDialog, {+ dispatch(openDialog('LeaveReasonDialog', LeaveReasonDialog, {onClose: resolve,title}));diff --git a/react/features/conference/components/web/SpeakerStatsLabel.tsx b/react/features/conference/components/web/SpeakerStatsLabel.tsxindex 4d3f1ffd1c..5170d959c7 100644--- a/react/features/conference/components/web/SpeakerStatsLabel.tsx+++ b/react/features/conference/components/web/SpeakerStatsLabel.tsx@@ -26,7 +26,7 @@ function SpeakerStatsLabel() {const { t } = useTranslation();const onClick = () => {- dispatch(openDialog(SpeakerStats, { conference }));+ dispatch(openDialog('SpeakerStats', SpeakerStats, { conference }));};if (count <= 2 || _isSpeakerStatsDisabled) {diff --git a/react/features/connection-indicator/components/web/ConnectionIndicatorContent.tsx b/react/features/connection-indicator/components/web/ConnectionIndicatorContent.tsxindex 55a74b598c..d72fe9c1c3 100644--- a/react/features/connection-indicator/components/web/ConnectionIndicatorContent.tsx+++ b/react/features/connection-indicator/components/web/ConnectionIndicatorContent.tsx@@ -327,7 +327,7 @@ export function _mapDispatchToProps(dispatch: IStore['dispatch']) {* @returns {void}*/_onOpenBandwidthDialog() {- dispatch(openDialog(BandwidthSettingsDialog));+ dispatch(openDialog('BandwidthSettingsDialog', BandwidthSettingsDialog));}};}diff --git a/react/features/desktop-picker/actions.ts b/react/features/desktop-picker/actions.tsindex 7b7b89b500..b250e6ef5c 100644--- a/react/features/desktop-picker/actions.ts+++ b/react/features/desktop-picker/actions.ts@@ -18,7 +18,7 @@ type Options = {export function showDesktopPicker(options: Options = {}, onSourceChoose: Function) {const { desktopSharingSources } = options;- return openDialog(DesktopPicker, {+ return openDialog('DesktopPicker', DesktopPicker, {desktopSharingSources,onSourceChoose});diff --git a/react/features/display-name/actions.ts b/react/features/display-name/actions.tsindex 7880e9e22f..199ff2b9a7 100644--- a/react/features/display-name/actions.ts+++ b/react/features/display-name/actions.ts@@ -14,7 +14,7 @@ export function openDisplayNamePrompt({ onPostSubmit, validateInput }: {onPostSubmit?: Function;validateInput?: Function;}) {- return openDialog(DisplayNamePrompt, {+ return openDialog('DisplayNamePrompt', DisplayNamePrompt, {onPostSubmit,validateInput});diff --git a/react/features/display-name/middleware.ts b/react/features/display-name/middleware.tsindex 1aad445768..84e40df964 100644--- a/react/features/display-name/middleware.ts+++ b/react/features/display-name/middleware.ts@@ -16,7 +16,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {case SETTINGS_UPDATED: {if (action.settings.displayName&& isDialogOpen(getState, DisplayNamePrompt)) {- dispatch(hideDialog(DisplayNamePrompt));+ dispatch(hideDialog('DisplayNamePrompt', DisplayNamePrompt));}}}diff --git a/react/features/e2ee/middleware.ts b/react/features/e2ee/middleware.tsindex 2e4707b133..057fb1b805 100644--- a/react/features/e2ee/middleware.ts+++ b/react/features/e2ee/middleware.ts@@ -159,7 +159,7 @@ StateListenerRegistry.register(});conference.on(JitsiConferenceEvents.E2EE_VERIFICATION_READY, (pId: string, sas: object) => {- dispatch(openDialog(ParticipantVerificationDialog, { pId,+ dispatch(openDialog('ParticipantVerificationDialog', ParticipantVerificationDialog, { pId,sas }));});diff --git a/react/features/embed-meeting/components/EmbedMeetingButton.ts b/react/features/embed-meeting/components/EmbedMeetingButton.tsindex 4c76492180..0163794c05 100644--- a/react/features/embed-meeting/components/EmbedMeetingButton.ts+++ b/react/features/embed-meeting/components/EmbedMeetingButton.ts@@ -31,7 +31,7 @@ class EmbedMeetingButton extends AbstractButton<AbstractButtonProps> {const { dispatch } = this.props;sendAnalytics(createToolbarEvent('embed.meeting'));- dispatch(openDialog(EmbedMeetingDialog));+ dispatch(openDialog('EmbedMeetingDialog', EmbedMeetingDialog));}}diff --git a/react/features/feedback/actions.web.ts b/react/features/feedback/actions.web.tsindex a49fc885d4..9f2d497ced 100644--- a/react/features/feedback/actions.web.ts+++ b/react/features/feedback/actions.web.ts@@ -109,7 +109,7 @@ export function maybeOpenFeedbackDialog(conference: IJitsiConference, title?: st* @returns {Object}*/export function openFeedbackDialog(conference?: IJitsiConference, title?: string, onClose?: Function) {- return openDialog(FeedbackDialog, {+ return openDialog('FeedbackDialog', FeedbackDialog, {conference,onClose,titlediff --git a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsxindex 60d2bcae4a..4921f74893 100644--- a/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx+++ b/react/features/invite/components/add-people-dialog/native/AddPeopleDialog.tsx@@ -559,7 +559,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<IProps, IState> {* @returns {void}*/_showFailedInviteAlert() {- this.props.dispatch(openDialog(AlertDialog, {+ this.props.dispatch(openDialog('AlertDialog', AlertDialog, {contentKey: {key: 'inviteDialog.alertText'}diff --git a/react/features/invite/components/dial-in-summary/native/DialInSummary.tsx b/react/features/invite/components/dial-in-summary/native/DialInSummary.tsxindex e912de4f9e..1ef420288f 100644--- a/react/features/invite/components/dial-in-summary/native/DialInSummary.tsx+++ b/react/features/invite/components/dial-in-summary/native/DialInSummary.tsx@@ -95,7 +95,7 @@ class DialInSummary extends PureComponent<IProps> {* @returns {void}*/_onError() {- this.props.dispatch(openDialog(DialInSummaryErrorDialog));+ this.props.dispatch(openDialog('DialInSummaryErrorDialog', DialInSummaryErrorDialog));}/**diff --git a/react/features/invite/middleware.web.ts b/react/features/invite/middleware.web.tsindex 1548fa60f4..ea7df3c2e9 100644--- a/react/features/invite/middleware.web.ts+++ b/react/features/invite/middleware.web.ts@@ -41,7 +41,7 @@ MiddlewareRegistry.register(store => next => action => {function _beginAddPeople({ dispatch }: IStore, next: Function, action: AnyAction) {const result = next(action);- dispatch(openDialog(AddPeopleDialog));+ dispatch(openDialog('AddPeopleDialog', AddPeopleDialog));return result;}@@ -60,7 +60,7 @@ function _beginAddPeople({ dispatch }: IStore, next: Function, action: AnyAction* @returns {*} The value returned by {@code next(action)}.*/function _hideAddPeopleDialog({ dispatch }: IStore, next: Function, action: AnyAction) {- dispatch(hideDialog(AddPeopleDialog));+ dispatch(hideDialog('AddPeopleDialog', AddPeopleDialog));return next(action);}diff --git a/react/features/jaas/actions.web.ts b/react/features/jaas/actions.web.tsindex b7e8887435..b68a804078 100644--- a/react/features/jaas/actions.web.ts+++ b/react/features/jaas/actions.web.ts@@ -15,7 +15,7 @@ import { isFeatureDisabled } from './functions';export function maybeShowPremiumFeatureDialog(feature: ParticipantFeaturesKey) {return function(dispatch: IStore['dispatch'], getState: IStore['getState']) {if (isFeatureDisabled(getState(), feature)) {- dispatch(openDialog(PremiumFeatureDialog));+ dispatch(openDialog('PremiumFeatureDialog', PremiumFeatureDialog));return true;}diff --git a/react/features/overlay/actions.native.ts b/react/features/overlay/actions.native.tsindex 5feaa12899..308215930d 100644--- a/react/features/overlay/actions.native.ts+++ b/react/features/overlay/actions.native.ts@@ -13,7 +13,7 @@ import PageReloadDialog from '../base/dialog/components/native/PageReloadDialog'*/export function openPageReloadDialog(conferenceError?: Error, configError?: Error, connectionError?: ConnectionFailedError) {- return openDialog(PageReloadDialog, {+ return openDialog('PageReloadDialog', PageReloadDialog, {conferenceError,configError,connectionErrordiff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RenameButton.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RenameButton.tsxindex 3d26a4fa99..51488177d5 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/RenameButton.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RenameButton.tsx@@ -34,7 +34,7 @@ export default function RenameButton({ breakoutRoomJid, name }: IProps) {const dispatch = useDispatch();const { classes, cx } = useStyles();const onRename = useCallback(() => {- dispatch(openDialog(BreakoutRoomNamePrompt, {+ dispatch(openDialog('BreakoutRoomNamePrompt', BreakoutRoomNamePrompt, {breakoutRoomJid,initialRoomName: name}));diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomContextMenu.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomContextMenu.tsxindex 809337d4b6..bc5dcfc463 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomContextMenu.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomContextMenu.tsx@@ -68,7 +68,7 @@ export const RoomContextMenu = ({}, [ dispatch, room ]);const onRenameBreakoutRoom = useCallback(() => {- dispatch(openDialog(BreakoutRoomNamePrompt, {+ dispatch(openDialog('BreakoutRoomNamePrompt', BreakoutRoomNamePrompt, {breakoutRoomJid: room?.jid,initialRoomName: room?.name}));diff --git a/react/features/participants-pane/components/native/ContextMenuMore.tsx b/react/features/participants-pane/components/native/ContextMenuMore.tsxindex 5e227690ae..a0f6874f53 100644--- a/react/features/participants-pane/components/native/ContextMenuMore.tsx+++ b/react/features/participants-pane/components/native/ContextMenuMore.tsx@@ -32,7 +32,7 @@ import styles from './styles';export const ContextMenuMore = () => {const dispatch = useDispatch();const muteAllVideo = useCallback(() => {- dispatch(openDialog(MuteEveryonesVideoDialog));+ dispatch(openDialog('MuteEveryonesVideoDialog', MuteEveryonesVideoDialog));dispatch(hideSheet());}, [ dispatch ]);const conference = useSelector(getCurrentConference);diff --git a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsxindex 8e67686945..40366f54ea 100644--- a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx+++ b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx@@ -42,7 +42,7 @@ const ParticipantsPaneFooter = (): JSX.Element => {getFeatureFlag(state, BREAKOUT_ROOMS_BUTTON_ENABLED, true));const openMoreMenu = useCallback(() => dispatch(openSheet(ContextMenuMore)), [ dispatch ]);- const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),+ const muteAll = useCallback(() => dispatch(openDialog('MuteEveryoneDialog', MuteEveryoneDialog)),[ dispatch ]);const showMoreActions = useSelector(isMoreActionsVisible);const showMuteAll = useSelector(isMuteAllVisible);diff --git a/react/features/participants-pane/components/web/FooterContextMenu.tsx b/react/features/participants-pane/components/web/FooterContextMenu.tsxindex 6b64244f44..bd385beac4 100644--- a/react/features/participants-pane/components/web/FooterContextMenu.tsx+++ b/react/features/participants-pane/components/web/FooterContextMenu.tsx@@ -112,10 +112,10 @@ export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: IPropconst { classes } = useStyles();const muteAllVideo = useCallback(- () => dispatch(openDialog(MuteEveryonesVideoDialog)), [ dispatch ]);+ () => dispatch(openDialog('MuteEveryonesVideoDialog', MuteEveryonesVideoDialog)), [ dispatch ]);const muteAllDesktop = useCallback(- () => dispatch(openDialog(MuteEveryonesDesktopDialog)), [ dispatch ]);+ () => dispatch(openDialog('MuteEveryonesDesktopDialog', MuteEveryonesDesktopDialog)), [ dispatch ]);const openModeratorSettings = () => dispatch(openSettingsDialog(SETTINGS_TABS.MODERATOR));diff --git a/react/features/participants-pane/components/web/ParticipantsPane.tsx b/react/features/participants-pane/components/web/ParticipantsPane.tsxindex 51667e2715..4480044c1c 100644--- a/react/features/participants-pane/components/web/ParticipantsPane.tsx+++ b/react/features/participants-pane/components/web/ParticipantsPane.tsx@@ -181,7 +181,7 @@ const ParticipantsPane = () => {}, []);const onMuteAll = useCallback(() => {- dispatch(openDialog(MuteEveryoneDialog));+ dispatch(openDialog('MuteEveryoneDialog', MuteEveryoneDialog));}, []);const onToggleContext = useCallback(() => {diff --git a/react/features/reactions/components/native/ReactionMenuDialog.tsx b/react/features/reactions/components/native/ReactionMenuDialog.tsxindex c6e2ee2de8..6fe15d324e 100644--- a/react/features/reactions/components/native/ReactionMenuDialog.tsx+++ b/react/features/reactions/components/native/ReactionMenuDialog.tsx@@ -110,7 +110,7 @@ class ReactionMenuDialog extends PureComponent<IProps> {*/_onCancel() {if (this.props._isOpen) {- this.props.dispatch(hideDialog(ReactionMenu_));+ this.props.dispatch(hideDialog('ReactionMenu_', ReactionMenu_));return true;}diff --git a/react/features/reactions/components/native/ReactionsMenuButton.ts b/react/features/reactions/components/native/ReactionsMenuButton.tsindex a9f67a96a2..3f872abf8c 100644--- a/react/features/reactions/components/native/ReactionsMenuButton.ts+++ b/react/features/reactions/components/native/ReactionsMenuButton.ts@@ -47,7 +47,7 @@ class ReactionsMenuButton extends AbstractButton<IProps> {* @returns {void}*/override _handleClick() {- this.props.dispatch(openDialog(ReactionMenuDialog));+ this.props.dispatch(openDialog('ReactionMenuDialog', ReactionMenuDialog));}/**diff --git a/react/features/recording/actions.web.tsx b/react/features/recording/actions.web.tsxindex cd0c16742f..12e51e4b9c 100644--- a/react/features/recording/actions.web.tsx+++ b/react/features/recording/actions.web.tsx@@ -76,7 +76,7 @@ export function showRecordingLimitNotification(streamType: string) {*/export function showStartRecordingNotification() {return (dispatch: IStore['dispatch']) => {- const openDialogCallback = () => dispatch(openDialog(StartRecordingDialog));+ const openDialogCallback = () => dispatch(openDialog('StartRecordingDialog', StartRecordingDialog));dispatch(showStartRecordingNotificationWithCallback(openDialogCallback));};diff --git a/react/features/recording/components/LiveStream/native/LiveStreamButton.ts b/react/features/recording/components/LiveStream/native/LiveStreamButton.tsindex 85cabdb30a..cb43bcd267 100644--- a/react/features/recording/components/LiveStream/native/LiveStreamButton.ts+++ b/react/features/recording/components/LiveStream/native/LiveStreamButton.ts@@ -34,7 +34,7 @@ class LiveStreamButton extends AbstractLiveStreamButton<Props> {const { _isLiveStreamRunning, dispatch } = this.props;if (_isLiveStreamRunning) {- dispatch(openDialog(StopLiveStreamDialog));+ dispatch(openDialog('StopLiveStreamDialog', StopLiveStreamDialog));} else {navigate(screen.conference.liveStream);}diff --git a/react/features/recording/components/LiveStream/web/LiveStreamButton.ts b/react/features/recording/components/LiveStream/web/LiveStreamButton.tsindex d5a32e5a13..f6106a105e 100644--- a/react/features/recording/components/LiveStream/web/LiveStreamButton.ts+++ b/react/features/recording/components/LiveStream/web/LiveStreamButton.ts@@ -26,10 +26,10 @@ class LiveStreamButton extends AbstractLiveStreamButton<IProps> {*/override _onHandleClick() {const { _isLiveStreamRunning, dispatch } = this.props;+ const dialogComponent = _isLiveStreamRunning ? StopLiveStreamDialog : StartLiveStreamDialog;+ const dialogName = _isLiveStreamRunning ? 'StopLiveStreamDialog' : 'StartLiveStreamDialog';- dispatch(openDialog(- _isLiveStreamRunning ? StopLiveStreamDialog : StartLiveStreamDialog- ));+ dispatch(openDialog(dialogName, dialogComponent));}}diff --git a/react/features/recording/components/Recording/AbstractHighlightButton.ts b/react/features/recording/components/Recording/AbstractHighlightButton.tsindex f449897864..fb7d76024a 100644--- a/react/features/recording/components/Recording/AbstractHighlightButton.ts+++ b/react/features/recording/components/Recording/AbstractHighlightButton.ts@@ -82,7 +82,7 @@ export default class AbstractHighlightButton<P extends IProps, S={}> extends Comconst dialogShown = dispatch(maybeShowPremiumFeatureDialog(MEET_FEATURES.RECORDING));if (!dialogShown) {- dispatch(openDialog(StartRecordingDialog));+ dispatch(openDialog('StartRecordingDialog', StartRecordingDialog));}} ],appearance: NOTIFICATION_TYPE.NORMALdiff --git a/react/features/recording/components/Recording/native/RecordButton.ts b/react/features/recording/components/Recording/native/RecordButton.tsindex 4daca89854..7fab5ee39d 100644--- a/react/features/recording/components/Recording/native/RecordButton.ts+++ b/react/features/recording/components/Recording/native/RecordButton.ts@@ -37,7 +37,7 @@ class RecordButton extends AbstractRecordButton<Props> {const { _isRecordingRunning, dispatch } = this.props;if (_isRecordingRunning) {- dispatch(openDialog(StopRecordingDialog));+ dispatch(openDialog('StopRecordingDialog', StopRecordingDialog));} else {navigate(screen.conference.recording);}diff --git a/react/features/recording/components/Recording/web/HighlightButton.tsx b/react/features/recording/components/Recording/web/HighlightButton.tsxindex 30c8b0b022..85b0023092 100644--- a/react/features/recording/components/Recording/web/HighlightButton.tsx+++ b/react/features/recording/components/Recording/web/HighlightButton.tsx@@ -138,7 +138,7 @@ export class HighlightButton extends AbstractHighlightButton<IProps, IState> {const dialogShown = dispatch(maybeShowPremiumFeatureDialog(MEET_FEATURES.RECORDING));if (!dialogShown) {- dispatch(openDialog(StartRecordingDialog));+ dispatch(openDialog('StartRecordingDialog', StartRecordingDialog));}}diff --git a/react/features/recording/components/Recording/web/RecordButton.ts b/react/features/recording/components/Recording/web/RecordButton.tsindex 3e976ce0de..a3f53a3b5c 100644--- a/react/features/recording/components/Recording/web/RecordButton.ts+++ b/react/features/recording/components/Recording/web/RecordButton.ts@@ -26,10 +26,10 @@ class RecordingButton extends AbstractRecordButton<IProps> {*/override _onHandleClick() {const { _isRecordingRunning, dispatch } = this.props;+ const dialogComponent = _isRecordingRunning ? StopRecordingDialog : StartRecordingDialog;+ const dialogName = _isRecordingRunning ? 'StopRecordingDialog' : 'StartRecordingDialog';- dispatch(openDialog(- _isRecordingRunning ? StopRecordingDialog : StartRecordingDialog- ));+ dispatch(openDialog(dialogName, dialogComponent));}}diff --git a/react/features/recording/middleware.ts b/react/features/recording/middleware.tsindex 0a0d5f92ac..59e71989eb 100644--- a/react/features/recording/middleware.ts+++ b/react/features/recording/middleware.ts@@ -427,6 +427,6 @@ function _showExplicitConsentDialog(recorderSession: any, dispatch: IStore['dispdispatch(setVideoUnmutePermissions(true, true));dispatch(setAudioMuted(true));dispatch(setVideoMuted(true));- dispatch(openDialog(RecordingConsentDialog));+ dispatch(openDialog('RecordingConsentDialog', RecordingConsentDialog));});}diff --git a/react/features/remote-control/actions.ts b/react/features/remote-control/actions.tsindex cd4bf51346..9fe874274b 100644--- a/react/features/remote-control/actions.ts+++ b/react/features/remote-control/actions.ts@@ -64,7 +64,7 @@ let permissionsReplyListener: Function | undefined,* @public*/export function openRemoteControlAuthorizationDialog(participantId: string) {- return openDialog(RemoteControlAuthorizationDialog, { participantId });+ return openDialog('RemoteControlAuthorizationDialog', RemoteControlAuthorizationDialog, { participantId });}/**diff --git a/react/features/room-lock/actions.ts b/react/features/room-lock/actions.tsindex 1998afa3aa..cdf5eb50bb 100644--- a/react/features/room-lock/actions.ts+++ b/react/features/room-lock/actions.ts@@ -71,7 +71,7 @@ export function endRoomLockRequest(= password? dispatch(setPassword(conference, conference.lock, password)): Promise.resolve();- const endRoomLockRequest_ = () => dispatch(hideDialog(SecurityDialog));+ const endRoomLockRequest_ = () => dispatch(hideDialog('SecurityDialog', SecurityDialog));setPassword_.then(endRoomLockRequest_, endRoomLockRequest_);};@@ -90,7 +90,7 @@ export function endRoomLockRequest(* }}*/export function _openPasswordRequiredPrompt(conference: IJitsiConference) {- return openDialog(PasswordRequiredPrompt, { conference });+ return openDialog('PasswordRequiredPrompt', PasswordRequiredPrompt, { conference });}/**diff --git a/react/features/room-lock/middleware.ts b/react/features/room-lock/middleware.tsindex f73c770403..1c0b2e9ffd 100644--- a/react/features/room-lock/middleware.ts+++ b/react/features/room-lock/middleware.ts@@ -74,7 +74,7 @@ MiddlewareRegistry.register(store => next => action => {* @returns {*}*/function _conferenceJoined({ dispatch }: IStore, next: Function, action: AnyAction) {- dispatch(hideDialog(PasswordRequiredPrompt));+ dispatch(hideDialog('PasswordRequiredPrompt', PasswordRequiredPrompt));return next(action);}@@ -104,7 +104,7 @@ function _conferenceFailed({ dispatch }: IStore, next: Function, action: AnyActidispatch(_openPasswordRequiredPrompt(conference));}} else {- dispatch(hideDialog(PasswordRequiredPrompt));+ dispatch(hideDialog('PasswordRequiredPrompt', PasswordRequiredPrompt));}return next(action);diff --git a/react/features/salesforce/actions.ts b/react/features/salesforce/actions.tsindex 947fd13fde..2593fab1e0 100644--- a/react/features/salesforce/actions.ts+++ b/react/features/salesforce/actions.ts@@ -28,7 +28,7 @@ export function showSalesforceNotification() {customActionNameKey: [ 'notify.linkToSalesforceKey' ],customActionHandler: [ () => {dispatch(hideNotification(SALESFORCE_LINK_NOTIFICATION_ID));- dispatch(openDialog(SalesforceLinkDialog));+ dispatch(openDialog('SalesforceLinkDialog', SalesforceLinkDialog));} ],appearance: NOTIFICATION_TYPE.NORMAL}, NOTIFICATION_TIMEOUT_TYPE.LONG));diff --git a/react/features/screen-share/actions.web.ts b/react/features/screen-share/actions.web.tsindex 4bb99a0b3f..9557202ee2 100644--- a/react/features/screen-share/actions.web.ts+++ b/react/features/screen-share/actions.web.ts@@ -59,7 +59,7 @@ export function startAudioScreenShareFlow() {// If we're already in a normal screen sharing session, warn the user.if (isScreenVideoShared(state)) {- dispatch(openDialog(ShareMediaWarningDialog, { _isAudioScreenShareWarning: true }));+ dispatch(openDialog('ShareMediaWarningDialog', ShareMediaWarningDialog, { _isAudioScreenShareWarning: true }));return;}@@ -76,7 +76,7 @@ export function startAudioScreenShareFlow() {return;}- dispatch(openDialog(ShareAudioDialog));+ dispatch(openDialog('ShareAudioDialog', ShareAudioDialog));};}@@ -94,7 +94,7 @@ export function startScreenShareFlow(enabled: boolean) {// If we're in an audio screen sharing session, warn the user.if (audioOnlySharing) {- dispatch(openDialog(ShareMediaWarningDialog, { _isAudioScreenShareWarning: false }));+ dispatch(openDialog('ShareMediaWarningDialog', ShareMediaWarningDialog, { _isAudioScreenShareWarning: false }));return;}diff --git a/react/features/screenshot-capture/actions.ts b/react/features/screenshot-capture/actions.tsindex 453542b518..d9789e3ccd 100644--- a/react/features/screenshot-capture/actions.ts+++ b/react/features/screenshot-capture/actions.ts@@ -78,7 +78,7 @@ export function openCameraCaptureDialog(callback: Function, componentProps: ICamreturn;}- dispatch(openDialog(CameraCaptureDialog, {+ dispatch(openDialog('CameraCaptureDialog', CameraCaptureDialog, {callback,componentProps}));diff --git a/react/features/security/actions.ts b/react/features/security/actions.tsindex e371bc81a0..ec0acd3cfc 100644--- a/react/features/security/actions.ts+++ b/react/features/security/actions.ts@@ -10,6 +10,6 @@ import { SecurityDialog } from './components/security-dialog';*/export function toggleSecurityDialog() {return function(dispatch: IStore['dispatch']) {- dispatch(toggleDialog(SecurityDialog));+ dispatch(toggleDialog('SecurityDialog', SecurityDialog));};}diff --git a/react/features/settings/actions.native.ts b/react/features/settings/actions.native.tsindex fe6c149cb9..6701a127a6 100644--- a/react/features/settings/actions.native.ts+++ b/react/features/settings/actions.native.ts@@ -21,7 +21,7 @@ export function openLogoutDialog() {const config = state['features/base/config'];const logoutUrl = config.tokenLogoutUrl;- dispatch(openDialog(LogoutDialog, {+ dispatch(openDialog('LogoutDialog', LogoutDialog, {onLogout() {if (isTokenAuthEnabled(config)) {if (logoutUrl) {diff --git a/react/features/settings/actions.web.ts b/react/features/settings/actions.web.tsindex 6807dea6e6..fa43fdd3ae 100644--- a/react/features/settings/actions.web.ts+++ b/react/features/settings/actions.web.ts@@ -53,7 +53,7 @@ export function openLogoutDialog() {const { conference } = state['features/base/conference'];const { jwt } = state['features/base/jwt'];- dispatch(openDialog(LogoutDialog, {+ dispatch(openDialog('LogoutDialog', LogoutDialog, {onLogout() {if (isTokenAuthEnabled(config) && config.tokenAuthUrlAutoRedirect && jwt) {@@ -90,7 +90,7 @@ export function openLogoutDialog() {* @returns {Function}*/export function openSettingsDialog(defaultTab?: string, isDisplayedOnWelcomePage?: boolean) {- return openDialog(SettingsDialog, {+ return openDialog('SettingsDialog', SettingsDialog, {defaultTab,isDisplayedOnWelcomePage});diff --git a/react/features/shared-video/actions.ts b/react/features/shared-video/actions.tsindex 6498814068..119e22d3e8 100644--- a/react/features/shared-video/actions.ts+++ b/react/features/shared-video/actions.ts@@ -81,7 +81,7 @@ export function setSharedVideoStatus({ videoUrl, status, time, ownerId, muted }:* @returns {Function}*/export function showSharedVideoDialog(onPostSubmit: Function) {- return openDialog(SharedVideoDialog, { onPostSubmit });+ return openDialog('SharedVideoDialog', SharedVideoDialog, { onPostSubmit });}/**@@ -181,7 +181,7 @@ export function showConfirmPlayingDialog(actor: String, onSubmit: Function) {// shows only one dialog at a timedispatch(setConfirmShowVideo(false));- dispatch(openDialog(ShareVideoConfirmDialog, {+ dispatch(openDialog('ShareVideoConfirmDialog', ShareVideoConfirmDialog, {actorName: actor,onSubmit: () => {dispatch(setConfirmShowVideo(true));@@ -198,6 +198,6 @@ export function showConfirmPlayingDialog(actor: String, onSubmit: Function) {*/export function hideConfirmPlayingDialog() {return (dispatch: IStore['dispatch']) => {- dispatch(hideDialog(ShareVideoConfirmDialog));+ dispatch(hideDialog('ShareVideoConfirmDialog', ShareVideoConfirmDialog));};}diff --git a/react/features/speaker-stats/components/web/SpeakerStatsButton.tsx b/react/features/speaker-stats/components/web/SpeakerStatsButton.tsxindex a1876f3d7c..6399805458 100644--- a/react/features/speaker-stats/components/web/SpeakerStatsButton.tsx+++ b/react/features/speaker-stats/components/web/SpeakerStatsButton.tsx@@ -26,7 +26,7 @@ class SpeakerStatsButton extends AbstractSpeakerStatsButton {const { dispatch } = this.props;sendAnalytics(createToolbarEvent('speaker.stats'));- dispatch(openDialog(SpeakerStats));+ dispatch(openDialog('SpeakerStats', SpeakerStats));}}diff --git a/react/features/subtitles/actions.web.ts b/react/features/subtitles/actions.web.tsindex 23d68284bf..cae41bf172 100644--- a/react/features/subtitles/actions.web.ts+++ b/react/features/subtitles/actions.web.ts@@ -12,6 +12,6 @@ export * from './actions.any';*/export function toggleLanguageSelectorDialog() {return function(dispatch: IStore['dispatch']) {- dispatch(toggleDialog(LanguageSelectorDialog));+ dispatch(toggleDialog('LanguageSelectorDialog', LanguageSelectorDialog));};}diff --git a/react/features/toolbox/components/web/LinkToSalesforceButton.ts b/react/features/toolbox/components/web/LinkToSalesforceButton.tsindex 57b7d49d28..8a989ba51e 100644--- a/react/features/toolbox/components/web/LinkToSalesforceButton.ts+++ b/react/features/toolbox/components/web/LinkToSalesforceButton.ts@@ -29,7 +29,7 @@ class LinkToSalesforce extends AbstractButton<AbstractButtonProps> {const { dispatch } = this.props;sendAnalytics(createToolbarEvent('link.to.salesforce'));- dispatch(openDialog(SalesforceLinkDialog));+ dispatch(openDialog('SalesforceLinkDialog', SalesforceLinkDialog));}}diff --git a/react/features/toolbox/hooks.web.ts b/react/features/toolbox/hooks.web.tsindex 69047440af..a416e0d2b6 100644--- a/react/features/toolbox/hooks.web.ts+++ b/react/features/toolbox/hooks.web.ts@@ -434,7 +434,7 @@ export const useKeyboardShortcuts = (toolbarButtons: Array<string>) => {function onToggleVideoQuality() {sendAnalytics(createShortcutEvent('video.quality'));- dispatch(toggleDialog(VideoQualityDialog));+ dispatch(toggleDialog('VideoQualityDialog', VideoQualityDialog));}/**@@ -523,7 +523,7 @@ export const useKeyboardShortcuts = (toolbarButtons: Array<string>) => {'speaker.stats'));- dispatch(toggleDialog(SpeakerStats, {+ dispatch(toggleDialog('SpeakerStats', SpeakerStats, {conference: APP.conference}));}diff --git a/react/features/video-menu/components/AbstractGrantModeratorButton.ts b/react/features/video-menu/components/AbstractGrantModeratorButton.tsindex 4a0c7b4eaf..8b6935d2c7 100644--- a/react/features/video-menu/components/AbstractGrantModeratorButton.ts+++ b/react/features/video-menu/components/AbstractGrantModeratorButton.ts@@ -32,7 +32,7 @@ export default class AbstractGrantModeratorButton extends AbstractButton<IProps>override _handleClick() {const { dispatch, participantID } = this.props;- dispatch(openDialog(GrantModeratorDialog, { participantID }));+ dispatch(openDialog('GrantModeratorDialog', GrantModeratorDialog, { participantID }));}}diff --git a/react/features/video-menu/components/AbstractKickButton.ts b/react/features/video-menu/components/AbstractKickButton.tsindex f934f1efd8..1ecfd8b04f 100644--- a/react/features/video-menu/components/AbstractKickButton.ts+++ b/react/features/video-menu/components/AbstractKickButton.ts@@ -29,6 +29,6 @@ export default class AbstractKickButton extends AbstractButton<IProps> {override _handleClick() {const { dispatch, participantID } = this.props;- dispatch(openDialog(KickRemoteParticipantDialog, { participantID }));+ dispatch(openDialog('KickRemoteParticipantDialog', KickRemoteParticipantDialog, { participantID }));}}diff --git a/react/features/video-menu/components/AbstractMuteEveryoneElseButton.ts b/react/features/video-menu/components/AbstractMuteEveryoneElseButton.tsindex dee46b78c4..c7f852a933 100644--- a/react/features/video-menu/components/AbstractMuteEveryoneElseButton.ts+++ b/react/features/video-menu/components/AbstractMuteEveryoneElseButton.ts@@ -32,6 +32,6 @@ export default class AbstractMuteEveryoneElseButton extends AbstractButton<IPropconst { dispatch, participantID } = this.props;sendAnalytics(createToolbarEvent('mute.everyoneelse.pressed'));- dispatch(openDialog(MuteEveryoneDialog, { exclude: [ participantID ] }));+ dispatch(openDialog('MuteEveryoneDialog', MuteEveryoneDialog, { exclude: [ participantID ] }));}}diff --git a/react/features/video-menu/components/AbstractMuteEveryoneElsesVideoButton.ts b/react/features/video-menu/components/AbstractMuteEveryoneElsesVideoButton.tsindex cc6e5ca8be..9610214ddf 100644--- a/react/features/video-menu/components/AbstractMuteEveryoneElsesVideoButton.ts+++ b/react/features/video-menu/components/AbstractMuteEveryoneElsesVideoButton.ts@@ -32,6 +32,6 @@ export default class AbstractMuteEveryoneElsesVideoButton extends AbstractButtonconst { dispatch, participantID } = this.props;sendAnalytics(createToolbarEvent('mute.everyoneelsesvideo.pressed'));- dispatch(openDialog(MuteEveryonesVideoDialog, { exclude: [ participantID ] }));+ dispatch(openDialog('MuteEveryonesVideoDialog', MuteEveryonesVideoDialog, { exclude: [ participantID ] }));}}diff --git a/react/features/video-menu/components/AbstractMuteVideoButton.ts b/react/features/video-menu/components/AbstractMuteVideoButton.tsindex 9b9d7100da..ff1c722a04 100644--- a/react/features/video-menu/components/AbstractMuteVideoButton.ts+++ b/react/features/video-menu/components/AbstractMuteVideoButton.ts@@ -48,7 +48,7 @@ export default class AbstractMuteVideoButton extends AbstractButton<IProps> {'participant_id': participantID}));- dispatch(openDialog(MuteRemoteParticipantsVideoDialog, { participantID }));+ dispatch(openDialog('MuteRemoteParticipantsVideoDialog', MuteRemoteParticipantsVideoDialog, { participantID }));}/**diff --git a/react/features/video-menu/components/native/DemoteToVisitorButton.ts b/react/features/video-menu/components/native/DemoteToVisitorButton.tsindex cc0bb32c4f..fe71cb1593 100644--- a/react/features/video-menu/components/native/DemoteToVisitorButton.ts+++ b/react/features/video-menu/components/native/DemoteToVisitorButton.ts@@ -33,7 +33,7 @@ class DemoteToVisitorButton extends AbstractButton<IProps> {override _handleClick() {const { dispatch, participantID } = this.props;- dispatch(openDialog(DemoteToVisitorDialog, { participantID }));+ dispatch(openDialog('DemoteToVisitorDialog', DemoteToVisitorDialog, { participantID }));}}diff --git a/react/features/video-menu/components/web/DemoteToVisitorButton.tsx b/react/features/video-menu/components/web/DemoteToVisitorButton.tsxindex 2bc7024776..73a38d3982 100644--- a/react/features/video-menu/components/web/DemoteToVisitorButton.tsx+++ b/react/features/video-menu/components/web/DemoteToVisitorButton.tsx@@ -48,7 +48,7 @@ export default function DemoteToVisitorButton({if (notifyMode === NOTIFY_CLICK_MODE.PREVENT_AND_NOTIFY) {return;}- dispatch(openDialog(DemoteToVisitorDialog, { participantID }));+ dispatch(openDialog('DemoteToVisitorDialog', DemoteToVisitorDialog, { participantID }));}, [ dispatch, notifyClick, notifyMode, participantID ]);return (diff --git a/react/features/video-menu/components/web/GrantModeratorButton.tsx b/react/features/video-menu/components/web/GrantModeratorButton.tsxindex 020bc85f4f..dea3d759b0 100644--- a/react/features/video-menu/components/web/GrantModeratorButton.tsx+++ b/react/features/video-menu/components/web/GrantModeratorButton.tsx@@ -36,7 +36,7 @@ const GrantModeratorButton = ({if (notifyMode === NOTIFY_CLICK_MODE.PREVENT_AND_NOTIFY) {return;}- dispatch(openDialog(GrantModeratorDialog, { participantID }));+ dispatch(openDialog('GrantModeratorDialog', GrantModeratorDialog, { participantID }));}, [ dispatch, notifyClick, notifyMode, participantID ]);if (!visible) {diff --git a/react/features/video-menu/components/web/KickButton.tsx b/react/features/video-menu/components/web/KickButton.tsxindex 6f9657960b..3bcb4f88c8 100644--- a/react/features/video-menu/components/web/KickButton.tsx+++ b/react/features/video-menu/components/web/KickButton.tsx@@ -29,7 +29,7 @@ const KickButton = ({if (notifyMode === NOTIFY_CLICK_MODE.PREVENT_AND_NOTIFY) {return;}- dispatch(openDialog(KickRemoteParticipantDialog, { participantID }));+ dispatch(openDialog('KickRemoteParticipantDialog', KickRemoteParticipantDialog, { participantID }));}, [ dispatch, notifyClick, notifyMode, participantID ]);return (diff --git a/react/features/video-menu/components/web/MuteDesktopButton.tsx b/react/features/video-menu/components/web/MuteDesktopButton.tsxindex e68216445f..eb7e303d79 100644--- a/react/features/video-menu/components/web/MuteDesktopButton.tsx+++ b/react/features/video-menu/components/web/MuteDesktopButton.tsx@@ -47,7 +47,7 @@ const MuteDesktopButton = ({'participant_id': participantID}));- dispatch(openDialog(MuteRemoteParticipantsDesktopDialog, { participantID }));+ dispatch(openDialog('MuteRemoteParticipantsDesktopDialog', MuteRemoteParticipantsDesktopDialog, { participantID }));}, [ dispatch, notifyClick, notifyClick, participantID, sendAnalytics ]);if (trackMuted) {diff --git a/react/features/video-menu/components/web/MuteEveryoneElseButton.tsx b/react/features/video-menu/components/web/MuteEveryoneElseButton.tsxindex 752a20f123..e8833fefe5 100644--- a/react/features/video-menu/components/web/MuteEveryoneElseButton.tsx+++ b/react/features/video-menu/components/web/MuteEveryoneElseButton.tsx@@ -33,7 +33,7 @@ const MuteEveryoneElseButton = ({return;}sendAnalytics(createToolbarEvent('mute.everyoneelse.pressed'));- dispatch(openDialog(MuteEveryoneDialog, { exclude: [ participantID ] }));+ dispatch(openDialog('MuteEveryoneDialog', MuteEveryoneDialog, { exclude: [ participantID ] }));}, [ dispatch, notifyMode, notifyClick, participantID, sendAnalytics ]);return (diff --git a/react/features/video-menu/components/web/MuteEveryoneElsesDesktopButton.tsx b/react/features/video-menu/components/web/MuteEveryoneElsesDesktopButton.tsxindex aad5e1ec53..b7821167dc 100644--- a/react/features/video-menu/components/web/MuteEveryoneElsesDesktopButton.tsx+++ b/react/features/video-menu/components/web/MuteEveryoneElsesDesktopButton.tsx@@ -33,7 +33,7 @@ const MuteEveryoneElsesDesktopButton = ({return;}sendAnalytics(createToolbarEvent('mute.everyoneelsesdesktop.pressed'));- dispatch(openDialog(MuteEveryonesDesktopDialog, { exclude: [ participantID ] }));+ dispatch(openDialog('MuteEveryonesDesktopDialog', MuteEveryonesDesktopDialog, { exclude: [ participantID ] }));}, [ notifyClick, notifyMode, participantID ]);return (diff --git a/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.tsx b/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.tsxindex 5daeee80a6..7b9afe66e9 100644--- a/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.tsx+++ b/react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.tsx@@ -33,7 +33,7 @@ const MuteEveryoneElsesVideoButton = ({return;}sendAnalytics(createToolbarEvent('mute.everyoneelsesvideo.pressed'));- dispatch(openDialog(MuteEveryonesVideoDialog, { exclude: [ participantID ] }));+ dispatch(openDialog('MuteEveryonesVideoDialog', MuteEveryonesVideoDialog, { exclude: [ participantID ] }));}, [ notifyClick, notifyMode, participantID ]);return (diff --git a/react/features/video-menu/components/web/MuteVideoButton.tsx b/react/features/video-menu/components/web/MuteVideoButton.tsxindex 05a6e573a5..a2297d55cc 100644--- a/react/features/video-menu/components/web/MuteVideoButton.tsx+++ b/react/features/video-menu/components/web/MuteVideoButton.tsx@@ -46,7 +46,7 @@ const MuteVideoButton = ({'participant_id': participantID}));- dispatch(openDialog(MuteRemoteParticipantsVideoDialog, { participantID }));+ dispatch(openDialog('MuteRemoteParticipantsVideoDialog', MuteRemoteParticipantsVideoDialog, { participantID }));}, [ dispatch, notifyClick, notifyClick, participantID, sendAnalytics ]);if (videoTrackMuted) {diff --git a/react/features/video-quality/components/VideoQualityButton.web.ts b/react/features/video-quality/components/VideoQualityButton.web.tsindex 3eaec83000..b815d6160b 100644--- a/react/features/video-quality/components/VideoQualityButton.web.ts+++ b/react/features/video-quality/components/VideoQualityButton.web.ts@@ -51,7 +51,7 @@ class VideoQualityButton extends AbstractButton<IProps> {sendAnalytics(createToolbarEvent('video.quality'));- dispatch(openDialog(VideoQualityDialog));+ dispatch(openDialog('VideoQualityDialog', VideoQualityDialog));}}diff --git a/react/features/video-quality/components/VideoQualityLabel.web.tsx b/react/features/video-quality/components/VideoQualityLabel.web.tsxindex 86141caf89..b538ebe47a 100644--- a/react/features/video-quality/components/VideoQualityLabel.web.tsx+++ b/react/features/video-quality/components/VideoQualityLabel.web.tsx@@ -43,7 +43,7 @@ const VideoQualityLabel = () => {tooltipKey = 'videoStatus.performanceSettings';}- const onClick = () => dispatch(openDialog(VideoQualityDialog));+ const onClick = () => dispatch(openDialog('VideoQualityDialog', VideoQualityDialog));return (<Tooltipdiff --git a/react/features/visitors/middleware.ts b/react/features/visitors/middleware.tsindex 216f43c8b5..9cf33d04f3 100644--- a/react/features/visitors/middleware.ts+++ b/react/features/visitors/middleware.ts@@ -80,7 +80,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {dispatch(setVisitorDemoteActor(undefined));});} else if (showJoinMeetingDialog) {- dispatch(openDialog(JoinMeetingDialog));+ dispatch(openDialog('JoinMeetingDialog', JoinMeetingDialog));}} else {diff --git a/react/features/whiteboard/components/native/Whiteboard.tsx b/react/features/whiteboard/components/native/Whiteboard.tsxindex 4832c1c1f9..58c9042d9f 100644--- a/react/features/whiteboard/components/native/Whiteboard.tsx+++ b/react/features/whiteboard/components/native/Whiteboard.tsx@@ -152,7 +152,7 @@ class Whiteboard extends PureComponent<IProps> {* @returns {void}*/_onError() {- this.props.dispatch(openDialog(WhiteboardErrorDialog));+ this.props.dispatch(openDialog('WhiteboardErrorDialog', WhiteboardErrorDialog));}/**diff --git a/react/features/whiteboard/middleware.native.ts b/react/features/whiteboard/middleware.native.tsindex 97a7a04eb1..629b58a2ed 100644--- a/react/features/whiteboard/middleware.native.ts+++ b/react/features/whiteboard/middleware.native.ts@@ -43,7 +43,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: AnyAif (enforceUserLimit) {dispatch(restrictWhiteboard(false));- dispatch(openDialog(WhiteboardLimitDialog));+ dispatch(openDialog('WhiteboardLimitDialog', WhiteboardLimitDialog));return next(action);}@@ -60,7 +60,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: AnyA}if (isDialogOpen(state, WhiteboardLimitDialog)) {- dispatch(hideDialog(WhiteboardLimitDialog));+ dispatch(hideDialog('WhiteboardLimitDialog', WhiteboardLimitDialog));}const collabDetails = getCollabDetails(state);diff --git a/react/features/whiteboard/middleware.web.ts b/react/features/whiteboard/middleware.web.tsindex bb1aa36da4..f2a4734718 100644--- a/react/features/whiteboard/middleware.web.ts+++ b/react/features/whiteboard/middleware.web.ts@@ -73,8 +73,8 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: AnyAif (enforceUserLimit) {dispatch(restrictWhiteboard(false));- dispatch(openDialog(WhiteboardLimitDialog));- iAmRecorder && setTimeout(() => dispatch(hideDialog(WhiteboardLimitDialog)), 3000);+ dispatch(openDialog('WhiteboardLimitDialog', WhiteboardLimitDialog));+ iAmRecorder && setTimeout(() => dispatch(hideDialog('WhiteboardLimitDialog', WhiteboardLimitDialog)), 3000);return next(action);}@@ -97,7 +97,7 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => (action: AnyA}if (isDialogOpen(state, WhiteboardLimitDialog)) {- dispatch(hideDialog(WhiteboardLimitDialog));+ dispatch(hideDialog('WhiteboardLimitDialog', WhiteboardLimitDialog));}focusWhiteboard(store);