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(ConferenceTimer): Add config option to hide.
Hristo Terezov5cae5985c00f
diff --git a/config.js b/config.jsindex 6df14df592..f12b33bae3 100644--- a/config.js+++ b/config.js@@ -616,6 +616,12 @@ var config = {// otherwise the app doesn't render it.// moderatedRoomServiceUrl: 'https://moderated.jitsi-meet.example.com',+ // Hides the conference timer.+ // hideConferenceTimer: true,++ // Sets the conference subject+ // subject: 'Conference Subject',+// List of undocumented settings used in jitsi-meet/**_immediateReloadThresholddiff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.jsindex 34f9601b1e..9a4f6330b9 100644--- a/react/features/base/config/configWhitelist.js+++ b/react/features/base/config/configWhitelist.js@@ -116,6 +116,7 @@ export default ['forceJVB121Ratio','gatherStats','googleApiApplicationClientID',+ 'hideConferenceTimer','hiddenDomain','hideLobbyButton','hosts',diff --git a/react/features/conference/components/native/NavigationBar.js b/react/features/conference/components/native/NavigationBar.jsindex 3a73af4d9b..2b8a085afb 100644--- a/react/features/conference/components/native/NavigationBar.js+++ b/react/features/conference/components/native/NavigationBar.js@@ -96,7 +96,8 @@ class NavigationBar extends Component<Props> {*/function _mapStateToProps(state) {return {- _conferenceTimerEnabled: getFeatureFlag(state, CONFERENCE_TIMER_ENABLED, true),+ _conferenceTimerEnabled:+ getFeatureFlag(state, CONFERENCE_TIMER_ENABLED, true) && !state['features/base/config'].hideConferenceTimer,_meetingName: getConferenceName(state),_meetingNameEnabled: getFeatureFlag(state, MEETING_NAME_ENABLED, true),_visible: isToolboxVisible(state)diff --git a/react/features/conference/components/web/Subject.js b/react/features/conference/components/web/Subject.jsindex 4405a89639..a8e2f87306 100644--- a/react/features/conference/components/web/Subject.js+++ b/react/features/conference/components/web/Subject.js@@ -16,7 +16,12 @@ import ParticipantsCount from './ParticipantsCount';type Props = {/**- * Whether then participant count should be shown or not.+ * Whether the conference timer should be shown or not.+ */+ _hideConferenceTimer: Boolean,++ /**+ * Whether the participant count should be shown or not.*/_showParticipantCount: boolean,@@ -46,13 +51,13 @@ class Subject extends Component<Props> {* @returns {ReactElement}*/render() {- const { _showParticipantCount, _subject, _visible } = this.props;+ const { _hideConferenceTimer, _showParticipantCount, _subject, _visible } = this.props;return (<div className = { `subject ${_visible ? 'visible' : ''}` }><span className = 'subject-text'>{ _subject }</span>{ _showParticipantCount && <ParticipantsCount /> }- <ConferenceTimer />+ { !_hideConferenceTimer && <ConferenceTimer /> }</div>);}@@ -65,6 +70,8 @@ class Subject extends Component<Props> {* @param {Object} state - The Redux state.* @private* @returns {{+ * _hideConferenceTimer: boolean,+ * _showParticipantCount: boolean,* _subject: string,* _visible: boolean* }}@@ -73,6 +80,7 @@ function _mapStateToProps(state) {const participantCount = getParticipantCount(state);return {+ _hideConferenceTimer: Boolean(state['features/base/config'].hideConferenceTimer),_showParticipantCount: participantCount > 2,_subject: getConferenceName(state),_visible: isToolboxVisible(state) && participantCount > 1