Selaa lähdekoodia

fix: Show audio/video options on lobby screen

master
Vlad Piersec 5 vuotta sitten
vanhempi
commit
3b1ad9faff
1 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. 9
    2
      react/features/conference/components/web/Conference.js

+ 9
- 2
react/features/conference/components/web/Conference.js Näytä tiedosto

@@ -12,7 +12,7 @@ import { Chat } from '../../../chat';
12 12
 import { Filmstrip } from '../../../filmstrip';
13 13
 import { CalleeInfoContainer } from '../../../invite';
14 14
 import { LargeVideo } from '../../../large-video';
15
-import { KnockingParticipantList } from '../../../lobby';
15
+import { KnockingParticipantList, LobbyScreen } from '../../../lobby';
16 16
 import { Prejoin, isPrejoinPageVisible } from '../../../prejoin';
17 17
 import {
18 18
     Toolbox,
@@ -73,6 +73,11 @@ type Props = AbstractProps & {
73 73
      */
74 74
     _iAmRecorder: boolean,
75 75
 
76
+    /**
77
+     * Returns true if the 'lobby screen' is visible.
78
+     */
79
+    _isLobbyScreenVisible: boolean,
80
+
76 81
     /**
77 82
      * The CSS class to apply to the root of {@link Conference} to modify the
78 83
      * application layout.
@@ -183,6 +188,7 @@ class Conference extends AbstractConference<Props, *> {
183 188
         } = interfaceConfig;
184 189
         const {
185 190
             _iAmRecorder,
191
+            _isLobbyScreenVisible,
186 192
             _layoutClassName,
187 193
             _showPrejoin
188 194
         } = this.props;
@@ -204,7 +210,7 @@ class Conference extends AbstractConference<Props, *> {
204 210
                     { hideLabels || <Labels /> }
205 211
                 </div>
206 212
 
207
-                { filmstripOnly || _showPrejoin || <Toolbox /> }
213
+                { filmstripOnly || _showPrejoin || _isLobbyScreenVisible || <Toolbox /> }
208 214
                 { filmstripOnly || <Chat /> }
209 215
 
210 216
                 { this.renderNotificationsContainer() }
@@ -276,6 +282,7 @@ function _mapStateToProps(state) {
276 282
     return {
277 283
         ...abstractMapStateToProps(state),
278 284
         _iAmRecorder: state['features/base/config'].iAmRecorder,
285
+        _isLobbyScreenVisible: state['features/base/dialog']?.component === LobbyScreen,
279 286
         _layoutClassName: LAYOUT_CLASSNAMES[getCurrentLayout(state)],
280 287
         _roomName: getConferenceNameForTitle(state),
281 288
         _showPrejoin: isPrejoinPageVisible(state)

Loading…
Peruuta
Tallenna