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(recorder): "already started" notification
Hristo Terezovbcb0fe919c3c
diff --git a/lang/main.json b/lang/main.jsonindex c2e72859d0..9cdf33dc14 100644--- a/lang/main.json+++ b/lang/main.json@@ -501,6 +501,7 @@"expandedPending": "The live streaming is being started...","failedToStart": "Live Streaming failed to start","getStreamKeyManually": "We weren’t able to fetch any live streams. Try getting your live stream key from YouTube.",+ "inProgress": "Recording or live streaming in progress","invalidStreamKey": "Live stream key may be incorrect.","off": "Live Streaming stopped","offBy": "{{name}} stopped the live streaming",@@ -761,6 +762,7 @@"expandedPending": "Recording is being started...","failedToStart": "Recording failed to start","fileSharingdescription": "Share recording with meeting participants",+ "inProgress": "Recording or live streaming in progress","linkGenerated": "We have generated a link to your recording.","live": "LIVE","loggedIn": "Logged in as {{userName}}",diff --git a/react/features/recording/actions.any.js b/react/features/recording/actions.any.jsindex 5c9551fdc2..2bc433db6d 100644--- a/react/features/recording/actions.any.js+++ b/react/features/recording/actions.any.js@@ -9,7 +9,8 @@ import {NOTIFICATION_TIMEOUT,hideNotification,showErrorNotification,- showNotification+ showNotification,+ showWarningNotification} from '../notifications';import {@@ -115,6 +116,16 @@ export function showRecordingError(props: Object) {return showErrorNotification(props);}+/**+ * Signals that the recording warning notification should be shown.+ *+ * @param {Object} props - The Props needed to render the notification.+ * @returns {showWarningNotification}+ */+export function showRecordingWarning(props: Object) {+ return showWarningNotification(props);+}+/*** Signals that the stopped recording notification should be shown on the* screen for a given period.diff --git a/react/features/recording/middleware.js b/react/features/recording/middleware.jsindex 3149425b04..be49daae9a 100644--- a/react/features/recording/middleware.js+++ b/react/features/recording/middleware.js@@ -27,6 +27,7 @@ import {showPendingRecordingNotification,showRecordingError,showRecordingLimitNotification,+ showRecordingWarning,showStartedRecordingNotification,showStoppedRecordingNotification,updateRecordingSessionData@@ -262,10 +263,11 @@ function _showRecordingErrorNotification(recorderSession, dispatch) {}));break;case JitsiMeetJS.constants.recording.error.UNEXPECTED_REQUEST:- dispatch(showRecordingError({- titleKey: isStreamMode+ dispatch(showRecordingWarning({+ descriptionKey: isStreamMode? 'liveStreaming.sessionAlreadyActive'- : 'recording.sessionAlreadyActive'+ : 'recording.sessionAlreadyActive',+ titleKey: isStreamMode ? 'liveStreaming.inProgress' : 'recording.inProgress'}));break;default: