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
ref(ToolbarButton): Remove unnecessary check.
hristoterezov53f675fbe01e
diff --git a/react/features/toolbox/components/ToolbarButton.web.js b/react/features/toolbox/components/ToolbarButton.web.jsindex 8922ea9e14..778d445ea7 100644--- a/react/features/toolbox/components/ToolbarButton.web.js+++ b/react/features/toolbox/components/ToolbarButton.web.js@@ -10,10 +10,7 @@ import {} from '../../../../modules/UI/util/Tooltip';import AbstractToolbarButton from './AbstractToolbarButton';-import {- getButtonAttributesByProps,- isButtonEnabled-} from '../functions';+import { getButtonAttributesByProps } from '../functions';declare var APP: Object;@@ -211,31 +208,27 @@ class ToolbarButton extends AbstractToolbarButton {*/_setShortcutAndTooltip(): void {const { button, tooltipPosition } = this.props;- const name = button.buttonName;-- if (isButtonEnabled(name)) {-- if (!button.unclickable) {- if (button.tooltipText) {- setTooltipText(this.button,- button.tooltipText,- tooltipPosition);- } else {- setTooltip(this.button,- button.tooltipKey,- tooltipPosition);- }- }- if (button.shortcut && APP && APP.keyboardshortcut) {- APP.keyboardshortcut.registerShortcut(- button.shortcut,- button.shortcutAttr,- button.shortcutFunc,- button.shortcutDescription- );+ if (!button.unclickable) {+ if (button.tooltipText) {+ setTooltipText(this.button,+ button.tooltipText,+ tooltipPosition);+ } else {+ setTooltip(this.button,+ button.tooltipKey,+ tooltipPosition);}}++ if (button.shortcut && APP && APP.keyboardshortcut) {+ APP.keyboardshortcut.registerShortcut(+ button.shortcut,+ button.shortcutAttr,+ button.shortcutFunc,+ button.shortcutDescription+ );+ }}}