Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(toolbox): Show dominant speaker name only when in conference
Vlad Piersec56c0edc89683
diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.jsindex e12753650b..9f096bf269 100644--- a/react/features/conference/components/web/Conference.js+++ b/react/features/conference/components/web/Conference.js@@ -238,7 +238,7 @@ class Conference extends AbstractConference<Props, *> {<Filmstrip /></div>- { _showPrejoin || _showLobby || <Toolbox /> }+ { _showPrejoin || _showLobby || <Toolbox showDominantSpeakerName = { true } /> }<Chat />{ this.renderNotificationsContainer() }diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.jsindex e2adbe2ab0..a9fc38d957 100644--- a/react/features/toolbox/components/web/Toolbox.js+++ b/react/features/toolbox/components/web/Toolbox.js@@ -230,6 +230,11 @@ type Props = {*/dispatch: Function,+ /**+ * If the dominant speaker name should be displayed or not.+ */+ showDominantSpeakerName?: boolean,+/*** Invoked to obtain translated strings.*/@@ -239,6 +244,7 @@ type Props = {* Explicitly passed array with the buttons which this Toolbox should display.*/toolbarButtons: Array<string>,+};declare var APP: Object;@@ -1222,6 +1228,7 @@ class Toolbox extends Component<Props, State> {_isMobile,_overflowMenuVisible,_toolbarButtons,+ showDominantSpeakerName,t,_reactionsEnabled} = this.props;@@ -1240,7 +1247,9 @@ class Toolbox extends Component<Props, State> {onMouseOut: this._onMouseOut,onMouseOver: this._onMouseOver}) }>- <DominantSpeakerName />++ { showDominantSpeakerName && <DominantSpeakerName /> }+<div className = 'toolbox-content-items'>{mainMenuButtons.map(({ Content, key, ...rest }) => Content !== Separator && (<Content