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(main-Toolbox): Display the correct buttons.
Hristo Terezovbe55ccd6f46b
diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsxindex 45911352ab..d4f78f811f 100644--- a/react/features/toolbox/components/web/Toolbox.tsx+++ b/react/features/toolbox/components/web/Toolbox.tsx@@ -1015,9 +1015,8 @@ class Toolbox extends Component<IProps> {this._setButtonsNotifyClickMode(buttons);const isHangupVisible = isToolbarButtonEnabled('hangup', _toolbarButtons);- const { order } = THRESHOLDS.find(({ width }) => _clientWidth > width)+ let { order } = THRESHOLDS.find(({ width }) => _clientWidth > width)|| THRESHOLDS[THRESHOLDS.length - 1];- let sliceIndex = order.length + 2;const keys = Object.keys(buttons);@@ -1028,6 +1027,11 @@ class Toolbox extends Component<IProps> {!_jwtDisabledButons.includes(key)&& (isToolbarButtonEnabled(key, _toolbarButtons) || isToolbarButtonEnabled(alias, _toolbarButtons)));+ const filteredKeys = filtered.map(button => button.key);++ order = order.filter(key => filteredKeys.includes(buttons[key as keyof typeof buttons].key));++ let sliceIndex = order.length + 2;if (isHangupVisible) {sliceIndex -= 1;