Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: Makes it possible to hide the "Save Logs" link. (#8143)

George Politis1041cd805539
diff --git a/config.js b/config.js
index af5973268f..1639e71b71 100644
--- a/config.js
+++ b/config.js
@@ -94,6 +94,11 @@ var config = {
// input and will suggest another valid device if one is present.
enableNoAudioDetection: true,
+ // Enabling this will show a "Save Logs" link in the GSM popover that can be
+ // used to collect debug information (XMPP IQs, SDP offer/answer cycles)
+ // about the call.
+ // enableSaveLogs: false,
+
// Enabling this will run the lib-jitsi-meet noise detection module which will
// notify the user if there is noise, other than voice, coming from the current
// selected microphone. The purpose it to let the user know that the input could
diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.js b/react/features/connection-indicator/components/web/ConnectionIndicator.js
index c1ceb0a6a8..4668ba7137 100644
--- a/react/features/connection-indicator/components/web/ConnectionIndicator.js
+++ b/react/features/connection-indicator/components/web/ConnectionIndicator.js
@@ -84,6 +84,12 @@ type Props = AbstractProps & {
*/
dispatch: Dispatch<any>,
+ /**
+ * Whether or not should display the "Save Logs" link in the local video
+ * stats table.
+ */
+ enableSaveLogs: boolean,
+
/**
* Whether or not clicking the indicator should display a popover for more
* details.
@@ -386,6 +392,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {
codec = { codec }
connectionSummary = { this._getConnectionStatusTip() }
e2eRtt = { e2eRtt }
+ enableSaveLogs = { this.props.enableSaveLogs }
framerate = { framerate }
isLocalVideo = { this.props.isLocalVideo }
maxEnabledResolution = { maxEnabledResolution }
@@ -440,7 +447,8 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
const participant
= typeof participantId === 'undefined' ? getLocalParticipant(state) : getParticipantById(state, participantId);
const props = {
- _connectionStatus: participant?.connectionStatus
+ _connectionStatus: participant?.connectionStatus,
+ enableSaveLogs: state['features/base/config'].enableSaveLogs
};
if (conference) {
diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js
index 39fc1ac1d3..91af6ac21b 100644
--- a/react/features/connection-stats/components/ConnectionStatsTable.js
+++ b/react/features/connection-stats/components/ConnectionStatsTable.js
@@ -54,6 +54,11 @@ type Props = {
*/
e2eRtt: number,
+ /**
+ * Whether or not should display the "Save Logs" link.
+ */
+ enableSaveLogs: boolean,
+
/**
* The endpoint id of this client.
*/
@@ -153,13 +158,13 @@ class ConnectionStatsTable extends Component<Props> {
* @returns {ReactElement}
*/
render() {
- const { isLocalVideo } = this.props;
+ const { isLocalVideo, enableSaveLogs } = this.props;
return (
<div className = 'connection-info'>
{ this._renderStatistics() }
<div className = 'connection-actions'>
- { isLocalVideo ? this._renderSaveLogs() : null}
+ { isLocalVideo && enableSaveLogs ? this._renderSaveLogs() : null}
{ this._renderShowMoreLink() }
</div>
{ this.props.shouldShowMore ? this._renderAdditionalStats() : null }