Преглед на файлове

feat: Drops SHOW_JITSI_WATERMARK_FOR_GUESTS and SHOW_WATERMARK_FOR_GUESTS.

master
damencho преди 5 години
родител
ревизия
c14f639639
променени са 2 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 0
    1
      interface_config.js
  2. 1
    3
      react/features/base/react/components/web/Watermarks.js

+ 0
- 1
interface_config.js Целия файл

@@ -186,7 +186,6 @@ var interfaceConfig = {
186 186
     SHOW_JITSI_WATERMARK: true,
187 187
     SHOW_POWERED_BY: false,
188 188
     SHOW_PROMOTIONAL_CLOSE_PAGE: false,
189
-    SHOW_WATERMARK_FOR_GUESTS: true, // if watermark is disabled by default, it can be shown only for guests
190 189
 
191 190
     /*
192 191
      * If indicated some of the error dialogs may point to the support URL for

+ 1
- 3
react/features/base/react/components/web/Watermarks.js Целия файл

@@ -225,7 +225,6 @@ class Watermarks extends Component<Props, State> {
225 225
  * @returns {Props}
226 226
  */
227 227
 function _mapStateToProps(state, ownProps) {
228
-    const { isGuest } = state['features/base/jwt'];
229 228
     const {
230 229
         customizationReady,
231 230
         customizationFailed,
@@ -239,12 +238,11 @@ function _mapStateToProps(state, ownProps) {
239 238
         DEFAULT_LOGO_URL,
240 239
         JITSI_WATERMARK_LINK,
241 240
         SHOW_JITSI_WATERMARK,
242
-        SHOW_JITSI_WATERMARK_FOR_GUESTS,
243 241
         filmStripOnly
244 242
     } = interfaceConfig;
245 243
     let _showJitsiWatermark = (!filmStripOnly
246 244
           && (customizationReady && !customizationFailed)
247
-          && (SHOW_JITSI_WATERMARK || (isGuest && SHOW_JITSI_WATERMARK_FOR_GUESTS)))
245
+          && SHOW_JITSI_WATERMARK)
248 246
     || !isValidRoom;
249 247
     let _logoUrl = logoImageUrl;
250 248
     let _logoLink = logoClickUrl;

Loading…
Отказ
Запис