瀏覽代碼

fix(toolbox): Show dominant speaker name only when in conference

master
Vlad Piersec 3 年之前
父節點
當前提交
56c0edc896

+ 1
- 1
react/features/conference/components/web/Conference.js 查看文件

@@ -238,7 +238,7 @@ class Conference extends AbstractConference<Props, *> {
238 238
                         <Filmstrip />
239 239
                     </div>
240 240
 
241
-                    { _showPrejoin || _showLobby || <Toolbox /> }
241
+                    { _showPrejoin || _showLobby || <Toolbox showDominantSpeakerName = { true } /> }
242 242
                     <Chat />
243 243
 
244 244
                     { this.renderNotificationsContainer() }

+ 10
- 1
react/features/toolbox/components/web/Toolbox.js 查看文件

@@ -230,6 +230,11 @@ type Props = {
230 230
      */
231 231
     dispatch: Function,
232 232
 
233
+    /**
234
+     * If the dominant speaker name should be displayed or not.
235
+     */
236
+    showDominantSpeakerName?: boolean,
237
+
233 238
     /**
234 239
      * Invoked to obtain translated strings.
235 240
      */
@@ -239,6 +244,7 @@ type Props = {
239 244
      * Explicitly passed array with the buttons which this Toolbox should display.
240 245
      */
241 246
     toolbarButtons: Array<string>,
247
+
242 248
 };
243 249
 
244 250
 declare var APP: Object;
@@ -1222,6 +1228,7 @@ class Toolbox extends Component<Props, State> {
1222 1228
             _isMobile,
1223 1229
             _overflowMenuVisible,
1224 1230
             _toolbarButtons,
1231
+            showDominantSpeakerName,
1225 1232
             t,
1226 1233
             _reactionsEnabled
1227 1234
         } = this.props;
@@ -1240,7 +1247,9 @@ class Toolbox extends Component<Props, State> {
1240 1247
                         onMouseOut: this._onMouseOut,
1241 1248
                         onMouseOver: this._onMouseOver
1242 1249
                     }) }>
1243
-                    <DominantSpeakerName />
1250
+
1251
+                    { showDominantSpeakerName && <DominantSpeakerName /> }
1252
+
1244 1253
                     <div className = 'toolbox-content-items'>
1245 1254
                         {mainMenuButtons.map(({ Content, key, ...rest }) => Content !== Separator && (
1246 1255
                             <Content

Loading…
取消
儲存