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
Adds an option to show watermark only for guests.
damencho6006333ccf64
diff --git a/interface_config.js b/interface_config.jsindex a4220d7b85..d477cba43b 100644--- a/interface_config.js+++ b/interface_config.js@@ -11,6 +11,8 @@ var interfaceConfig = { // eslint-disable-line no-unused-varsDEFAULT_LOCAL_DISPLAY_NAME: "me",SHOW_JITSI_WATERMARK: true,JITSI_WATERMARK_LINK: "https://jitsi.org",+ // if watermark is disabled by default, it can be shown only for guests+ SHOW_WATERMARK_FOR_GUESTS: true,SHOW_BRAND_WATERMARK: false,BRAND_WATERMARK_LINK: "",SHOW_POWERED_BY: false,diff --git a/react/features/conference/components/Conference.web.js b/react/features/conference/components/Conference.web.jsindex cda4e01796..9acfa8c931 100644--- a/react/features/conference/components/Conference.web.js+++ b/react/features/conference/components/Conference.web.js@@ -1,4 +1,4 @@-/* global interfaceConfig */+/* global interfaceConfig, APP */import React, { Component } from 'react';/**@@ -25,15 +25,19 @@ export default class Conference extends Component {const showBrandWatermark = interfaceConfig.SHOW_BRAND_WATERMARK;const showJitsiWatermark = interfaceConfig.SHOW_JITSI_WATERMARK;+ const showJitsiWatermarkForGuest+ = interfaceConfig.SHOW_WATERMARK_FOR_GUESTS;this.state = {...this.state,showBrandWatermark,showJitsiWatermark,+ showJitsiWatermarkForGuest,brandWatermarkLink:showBrandWatermark ? interfaceConfig.BRAND_WATERMARK_LINK : '',jitsiWatermarkLink:- showJitsiWatermark ? interfaceConfig.JITSI_WATERMARK_LINK : '',+ showJitsiWatermark || showJitsiWatermarkForGuest+ ? interfaceConfig.JITSI_WATERMARK_LINK : '',showPoweredBy: interfaceConfig.SHOW_POWERED_BY};}@@ -180,7 +184,9 @@ export default class Conference extends Component {* @private*/_renderJitsiWatermark() {- if (this.state.showJitsiWatermark) {+ if (this.state.showJitsiWatermark+ || (APP.tokenData.isGuest+ && this.state.showJitsiWatermarkForGuest)) {return (<ahref = { this.state.jitsiWatermarkLink }