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
fix(visitors) remove default notification (#14970)
Mihaela Dumitru1c12f5cf2a74
diff --git a/lang/main.json b/lang/main.jsonindex 6f737b3987..b151649d0b 100644--- a/lang/main.json+++ b/lang/main.json@@ -1503,7 +1503,6 @@"labelTooltip": "Number of visitors: {{count}}","notification": {"demoteDescription": "Sent here by {{actor}}, raise your hand to participate",- "description": "To participate raise your hand","noMainParticipantsDescription": "A participant needs to start the meeting. Please try again in a bit.","noMainParticipantsTitle": "This meeting hasn’t started yet.","noVisitorLobby": "You cannot join while there is a lobby enabled for the meeting.",diff --git a/react/features/visitors/middleware.ts b/react/features/visitors/middleware.tsindex 20b66d626c..89d5c3bf6d 100644--- a/react/features/visitors/middleware.ts+++ b/react/features/visitors/middleware.ts@@ -72,26 +72,26 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {const { conference } = action;if (getState()['features/visitors'].iAmVisitor) {- dispatch(openDialog(JoinMeetingDialog));const { demoteActorDisplayName } = getState()['features/visitors'];- dispatch(setVisitorDemoteActor(undefined));-- const notificationParams: INotificationProps = {- titleKey: 'visitors.notification.title',- descriptionKey: 'visitors.notification.description'- };-if (demoteActorDisplayName) {- notificationParams.descriptionKey = 'visitors.notification.demoteDescription';- notificationParams.descriptionArguments = {- actor: demoteActorDisplayName+ const notificationParams: INotificationProps = {+ titleKey: 'visitors.notification.title',+ descriptionKey: 'visitors.notification.demoteDescription',+ descriptionArguments: {+ actor: demoteActorDisplayName+ }};++ batch(() => {+ dispatch(showNotification(notificationParams, NOTIFICATION_TIMEOUT_TYPE.STICKY));+ dispatch(setVisitorDemoteActor(undefined));+ });+ } else {+ dispatch(openDialog(JoinMeetingDialog));}- // check for demote actor and update notification- dispatch(showNotification(notificationParams, NOTIFICATION_TIMEOUT_TYPE.STICKY));} else {dispatch(setVisitorsSupported(conference.isVisitorsSupported()));conference.on(JitsiConferenceEvents.VISITORS_SUPPORTED_CHANGED, (value: boolean) => {