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: Show cc button for ongoing transcribed meetings for guests
damencho20ce38bd4c48
diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.js b/react/features/subtitles/components/AbstractClosedCaptionButton.jsindex 6fc83bab2d..c61c5fbef2 100644--- a/react/features/subtitles/components/AbstractClosedCaptionButton.js+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.js@@ -85,7 +85,12 @@ export class AbstractClosedCaptionButtonexport function _abstractMapStateToProps(state: Object, ownProps: Object) {const { _requestingSubtitles } = state['features/subtitles'];const { transcribingEnabled } = state['features/base/config'];- const { visible = Boolean(transcribingEnabled && isLocalParticipantModerator(state)) } = ownProps;+ const { isTranscribing } = state['features/transcribing'];++ // if the participant is moderator, it can enable transcriptions and if+ // transcriptions are already started for the meeting, guests can just show them+ const { visible = Boolean(transcribingEnabled+ && (isLocalParticipantModerator(state) || isTranscribing)) } = ownProps;return {_requestingSubtitles,diff --git a/react/features/subtitles/components/ClosedCaptionButton.native.js b/react/features/subtitles/components/ClosedCaptionButton.native.jsindex ce37ae7241..a612c2a124 100644--- a/react/features/subtitles/components/ClosedCaptionButton.native.js+++ b/react/features/subtitles/components/ClosedCaptionButton.native.js@@ -31,14 +31,12 @@ class ClosedCaptionButton* @returns {Props}*/export function mapStateToProps(state: Object, ownProps: Object) {- const { transcribingEnabled } = state['features/base/config'];- const { isGuest = true } = state['features/base/jwt'];- const enabled = getFeatureFlag(state, CLOSE_CAPTIONS_ENABLED, true) && transcribingEnabled && !isGuest;- const { visible = enabled } = ownProps;+ const enabled = getFeatureFlag(state, CLOSE_CAPTIONS_ENABLED, true);+ const abstractProps = _abstractMapStateToProps(state, ownProps);return {- ..._abstractMapStateToProps(state, ownProps),- visible+ ...abstractProps,+ visible: abstractProps.visible && enabled};}