Quellcode durchsuchen

[RN] No upcoming-meeting notification in Picture-in-Picture

master
Lyubo Marinov vor 7 Jahren
Ursprung
Commit
aba0912abf
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 6
    4
      react/features/conference/components/Conference.native.js

+ 6
- 4
react/features/conference/components/Conference.native.js Datei anzeigen

@@ -339,14 +339,16 @@ class Conference extends Component<Props> {
339 339
     /**
340 340
      * Renders the conference notification badge if the feature is enabled.
341 341
      *
342
-     * Note: If the calendar feature is disabled on a platform, then we don't
343
-     * have its components exported so an undefined check is necessary.
344
-     *
345 342
      * @private
346 343
      * @returns {React$Node}
347 344
      */
348 345
     _renderConferenceNotification() {
349
-        return ConferenceNotification ? <ConferenceNotification /> : undefined;
346
+        // XXX If the calendar feature is disabled on a platform, then we don't
347
+        // have its components exported so an undefined check is necessary.
348
+        return (
349
+            !this.props._reducedUI && ConferenceNotification
350
+                ? <ConferenceNotification />
351
+                : undefined);
350 352
     }
351 353
 }
352 354
 

Laden…
Abbrechen
Speichern