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(conference) drop transcribing label
Saúl Ibarra Corretgé3074b1741f0b
diff --git a/config.js b/config.jsindex 4a88847d14..7dc071bc49 100644--- a/config.js+++ b/config.js@@ -1429,7 +1429,6 @@ var config = {// 'conference-timer',// 'participants-count',// 'e2ee',- // 'transcribing',// 'video-quality',// 'insecure-room',// 'highlight-moment',diff --git a/react/features/conference/components/native/Labels.tsx b/react/features/conference/components/native/Labels.tsxindex 32fa8bc03c..25cfdf6451 100644--- a/react/features/conference/components/native/Labels.tsx+++ b/react/features/conference/components/native/Labels.tsx@@ -1,11 +1,10 @@import React, { Component } from 'react';import { TouchableOpacity, View, ViewStyle } from 'react-native';-import TranscribingLabel from '../../../transcribing/components/TranscribingLabel.native';import VideoQualityLabel from '../../../video-quality/components/VideoQualityLabel.native';import InsecureRoomNameLabel from './InsecureRoomNameLabel';-import { LABEL_ID_INSECURE_ROOM_NAME, LABEL_ID_QUALITY, LABEL_ID_TRANSCRIBING, LabelHitSlop } from './constants';+import { LABEL_ID_INSECURE_ROOM_NAME, LABEL_ID_QUALITY, LabelHitSlop } from './constants';import styles from './styles';interface IProps {@@ -33,13 +32,6 @@ class Labels extends Component<IProps> {<ViewpointerEvents = 'box-none'style = { styles.indicatorContainer as ViewStyle }>- <TouchableOpacity- hitSlop = { LabelHitSlop }- onPress = {- this.props.createOnPress(LABEL_ID_TRANSCRIBING)- } >- <TranscribingLabel />- </TouchableOpacity><TouchableOpacityhitSlop = { LabelHitSlop }onPress = {diff --git a/react/features/conference/components/native/constants.ts b/react/features/conference/components/native/constants.tsindex 7bfa7ba468..ce88cc8cd0 100644--- a/react/features/conference/components/native/constants.ts+++ b/react/features/conference/components/native/constants.ts@@ -2,7 +2,6 @@ import React from 'react';import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';import RecordingExpandedLabel from '../../../recording/components/native/RecordingExpandedLabel';-import TranscribingExpandedLabel from '../../../transcribing/components/TranscribingExpandedLabel.native';import VideoQualityExpandedLabel from '../../../video-quality/components/VideoQualityExpandedLabel.native';import InsecureRoomNameExpandedLabel from './InsecureRoomNameExpandedLabel';@@ -23,7 +22,6 @@ export const EXPANDED_LABEL_TIMEOUT = 5000;export const LABEL_ID_QUALITY = 'quality';export const LABEL_ID_RECORDING = 'recording';export const LABEL_ID_STREAMING = 'streaming';-export const LABEL_ID_TRANSCRIBING = 'transcribing';export const LABEL_ID_INSECURE_ROOM_NAME = 'insecure-room-name';export const LABEL_ID_RAISED_HANDS_COUNT = 'raised-hands-count';export const LABEL_ID_VISITORS_COUNT = 'visitors-count';@@ -58,9 +56,6 @@ export const EXPANDED_LABELS: {},alwaysOn: true},- [LABEL_ID_TRANSCRIBING]: {- component: TranscribingExpandedLabel- },[LABEL_ID_INSECURE_ROOM_NAME]: {component: InsecureRoomNameExpandedLabel},diff --git a/react/features/conference/components/web/ConferenceInfo.tsx b/react/features/conference/components/web/ConferenceInfo.tsxindex e13bc710ad..83f2ab75c2 100644--- a/react/features/conference/components/web/ConferenceInfo.tsx+++ b/react/features/conference/components/web/ConferenceInfo.tsx@@ -9,7 +9,6 @@ import HighlightButton from '../../../recording/components/Recording/web/Highligimport RecordingLabel from '../../../recording/components/web/RecordingLabel';import { showToolbox } from '../../../toolbox/actions.web';import { isToolboxVisible } from '../../../toolbox/functions.web';-import TranscribingLabel from '../../../transcribing/components/TranscribingLabel.web';import VideoQualityLabel from '../../../video-quality/components/VideoQualityLabel.web';import VisitorsCountLabel from '../../../visitors/components/web/VisitorsCountLabel';import ConferenceTimer from '../ConferenceTimer';@@ -83,10 +82,6 @@ const COMPONENTS: Array<{Component: RaisedHandsCountLabel,id: 'raised-hands-count'},- {- Component: TranscribingLabel,- id: 'transcribing'- },{Component: VideoQualityLabel,id: 'video-quality'diff --git a/react/features/transcribing/components/TranscribingExpandedLabel.native.tsx b/react/features/transcribing/components/TranscribingExpandedLabel.native.tsxdeleted file mode 100644index e295b201b3..0000000000--- a/react/features/transcribing/components/TranscribingExpandedLabel.native.tsx+++ /dev/null@@ -1,23 +0,0 @@-import { WithTranslation } from 'react-i18next';--import { translate } from '../../base/i18n/functions';-import ExpandedLabel, { IProps as AbstractProps } from '../../base/label/components/native/ExpandedLabel';--type Props = AbstractProps & WithTranslation;--/**- * A react {@code Component} that implements an expanded label as tooltip-like- * component to explain the meaning of the {@code TranscribingLabel}.- */-class TranscribingExpandedLabel extends ExpandedLabel<Props> {- /**- * Returns the label specific text of this {@code ExpandedLabel}.- *- * @returns {string}- */- _getLabel() {- return this.props.t('transcribing.expandedLabel');- }-}--export default translate(TranscribingExpandedLabel);diff --git a/react/features/transcribing/components/TranscribingExpandedLabel.web.ts b/react/features/transcribing/components/TranscribingExpandedLabel.web.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/react/features/transcribing/components/TranscribingLabel.native.tsx b/react/features/transcribing/components/TranscribingLabel.native.tsxdeleted file mode 100644index 16c8d64cb4..0000000000--- a/react/features/transcribing/components/TranscribingLabel.native.tsx+++ /dev/null@@ -1,59 +0,0 @@-import React, { Component } from 'react';-import { WithTranslation } from 'react-i18next';-import { connect } from 'react-redux';--import { IReduxState } from '../../app/types';-import { translate } from '../../base/i18n/functions';-import Label from '../../base/label/components/native/Label';--/**- * The type of the React {@code Component} props of {@link TranscribingLabel}.- */-export interface IProps extends WithTranslation {-- /**- * True if the label needs to be rendered, false otherwise.- */- _showLabel: boolean;-}---/**- * React {@code Component} for displaying a label when a transcriber is in the- * conference.- *- * @augments Component- */-class TranscribingLabel extends Component<IProps> {-- /**- * Renders the platform-specific label component.- *- * @inheritdoc- */- render() {- if (!this.props._showLabel) {- return null;- }-- return <Label text = { this.props.t('transcribing.tr') } />;- }-}--/**- * Maps (parts of) the redux state to the associated props of the- * {@link AbstractTranscribingLabel} {@code Component}.- *- * @param {Object} state - The redux state.- * @private- * @returns {{- * _showLabel: boolean- * }}- */-export function _mapStateToProps(state: IReduxState) {- return {- _showLabel: state['features/transcribing'].isTranscribing- };-}--export default translate(connect(_mapStateToProps)(TranscribingLabel));diff --git a/react/features/transcribing/components/TranscribingLabel.web.tsx b/react/features/transcribing/components/TranscribingLabel.web.tsxdeleted file mode 100644index 713ccde68e..0000000000--- a/react/features/transcribing/components/TranscribingLabel.web.tsx+++ /dev/null@@ -1,28 +0,0 @@-import React from 'react';-import { useTranslation } from 'react-i18next';-import { useSelector } from 'react-redux';--import { IReduxState } from '../../app/types';-import Label from '../../base/label/components/web/Label';-import Tooltip from '../../base/tooltip/components/Tooltip';--const TranscribingLabel = () => {- const _showLabel = useSelector((state: IReduxState) => state['features/transcribing'].isTranscribing);- const { t } = useTranslation();-- if (!_showLabel) {- return null;- }-- return (- <Tooltip- content = { t('transcribing.labelToolTip') }- position = { 'left' }>- <Label- className = 'recording-label'- text = { t('transcribing.tr') } />- </Tooltip>- );-};--export default TranscribingLabel;