diff --git a/react/features/conference/components/Conference.web.js b/react/features/conference/components/Conference.web.js index 2b9257b5d..cda4e0179 100644 --- a/react/features/conference/components/Conference.web.js +++ b/react/features/conference/components/Conference.web.js @@ -1,3 +1,4 @@ +/* global interfaceConfig */ import React, { Component } from 'react'; /** @@ -13,6 +14,30 @@ const DISPLAY_NONE_STYLE = { */ export default class Conference extends Component { + /** + * Initializes Conference component instance. + * + * @param {Object} props - The read-only properties with which the new + * instance is to be initialized. + */ + constructor(props) { + super(props); + + const showBrandWatermark = interfaceConfig.SHOW_BRAND_WATERMARK; + const showJitsiWatermark = interfaceConfig.SHOW_JITSI_WATERMARK; + + this.state = { + ...this.state, + showBrandWatermark, + showJitsiWatermark, + brandWatermarkLink: + showBrandWatermark ? interfaceConfig.BRAND_WATERMARK_LINK : '', + jitsiWatermarkLink: + showJitsiWatermark ? interfaceConfig.JITSI_WATERMARK_LINK : '', + showPoweredBy: interfaceConfig.SHOW_POWERED_BY + }; + } + /** * Implements React's {@link Component#render()}. * @@ -55,18 +80,15 @@ export default class Conference extends Component {
- - - - - - - - jitsi.org - + { + this._renderJitsiWatermark() + } + { + this._renderBrandWatermark() + } + { + this._renderPoweredBy() + }