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(transcribing) drop transcribing notifications
Saúl Ibarra Corretgé00503d163a20
diff --git a/lang/main.json b/lang/main.jsonindex bea3cd139a..42297c6ade 100644--- a/lang/main.json+++ b/lang/main.json@@ -1355,13 +1355,9 @@},"transcribing": {"ccButtonTooltip": "Start / Stop subtitles",- "error": "Transcribing failed. Please try again.","expandedLabel": "Transcribing is currently on","failedToStart": "Transcribing failed to start","labelToolTip": "The meeting is being transcribed",- "off": "Transcribing stopped",- "on": "Transcribing started",- "pending": "Preparing to transcribe the meeting...","sourceLanguageDesc": "Currently the meeting language is set to <b>{{sourceLanguage}}</b>. <br/> You can change it from ","sourceLanguageHere": "here","start": "Start showing subtitles",diff --git a/react/features/transcribing/actions.ts b/react/features/transcribing/actions.tsindex 1569829bb2..2c2ecc06d0 100644--- a/react/features/transcribing/actions.ts+++ b/react/features/transcribing/actions.ts@@ -1,9 +1,3 @@-import { showErrorNotification, showNotification } from '../notifications/actions';-import {- NOTIFICATION_TIMEOUT_TYPE,- TRANSCRIBING_NOTIFICATION_ID-} from '../notifications/constants';-import {_POTENTIAL_TRANSCRIBER_JOINED,_TRANSCRIBER_JOINED,@@ -57,59 +51,3 @@ export function potentialTranscriberJoined(participantId: string) {transcriberJID: participantId};}--/**- * Signals that the pending transcribing notification should be shown on the- * screen.- *- * @returns {showNotification}- */-export function showPendingTranscribingNotification() {- return showNotification({- descriptionKey: 'transcribing.pending',- titleKey: 'dialog.transcribing',- uid: TRANSCRIBING_NOTIFICATION_ID- }, NOTIFICATION_TIMEOUT_TYPE.LONG);-}--/**- * Signals that the started transcribing notification should be shown on the- * screen.- *- * @returns {showNotification}- */-export function showStartedTranscribingNotification() {- return showNotification({- descriptionKey: 'transcribing.on',- titleKey: 'dialog.transcribing',- uid: TRANSCRIBING_NOTIFICATION_ID- }, NOTIFICATION_TIMEOUT_TYPE.SHORT);-}--/**- * Signals that the stopped transcribing notification should be shown on the- * screen.- *- * @returns {showNotification}- */-export function showStoppedTranscribingNotification() {- return showNotification({- descriptionKey: 'transcribing.off',- titleKey: 'dialog.transcribing',- uid: TRANSCRIBING_NOTIFICATION_ID- }, NOTIFICATION_TIMEOUT_TYPE.SHORT);-}---/**- * Signals that the transcribing error notification should be shown.- *- * @returns {showErrorNotification}- */-export function showTranscribingError() {- return showErrorNotification({- descriptionKey: 'transcribing.error',- titleKey: 'transcribing.failedToStart',- uid: TRANSCRIBING_NOTIFICATION_ID- }, NOTIFICATION_TIMEOUT_TYPE.LONG);-}diff --git a/react/features/transcribing/middleware.ts b/react/features/transcribing/middleware.tsindex 1638b82537..a4c7106af0 100644--- a/react/features/transcribing/middleware.ts+++ b/react/features/transcribing/middleware.ts@@ -4,7 +4,6 @@ import {PARTICIPANT_UPDATED} from '../base/participants/actionTypes';import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';-import { SET_REQUESTING_SUBTITLES } from '../subtitles/actionTypes';import { toggleRequestingSubtitles } from '../subtitles/actions.any';import {@@ -13,9 +12,6 @@ import {} from './actionTypes';import {potentialTranscriberJoined,- showPendingTranscribingNotification,- showStartedTranscribingNotification,- showStoppedTranscribingNotification,transcriberJoined,transcriberLeft} from './actions';@@ -31,7 +27,6 @@ const TRANSCRIBER_DISPLAY_NAME = 'Transcriber';// eslint-disable-next-line no-unused-varsMiddlewareRegistry.register(({ dispatch, getState }) => next => action => {const {- isTranscribing,transcriberJID,potentialTranscriberJIDs} = getState()['features/transcribing'];@@ -39,7 +34,6 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {switch (action.type) {case _TRANSCRIBER_JOINED: {notifyTranscribingStatusChanged(true);- dispatch(showStartedTranscribingNotification());const state = getState();const { transcription } = state['features/base/config'];@@ -52,7 +46,6 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {}case _TRANSCRIBER_LEFT: {notifyTranscribingStatusChanged(false);- dispatch(showStoppedTranscribingNotification());const state = getState();const { transcription } = state['features/base/config'];@@ -85,12 +78,6 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {break;}- case SET_REQUESTING_SUBTITLES:- if (action.enabled && !isTranscribing) {- dispatch(showPendingTranscribingNotification());- }-- break;}