mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Fix raise hand toggled state
This commit is contained in:
@@ -36,11 +36,6 @@ class Toolbar extends Component {
|
||||
*/
|
||||
_onMouseOver: React.PropTypes.func,
|
||||
|
||||
/**
|
||||
* Contains button handlers.
|
||||
*/
|
||||
buttonHandlers: React.PropTypes.object,
|
||||
|
||||
/**
|
||||
* Children of current React component.
|
||||
*/
|
||||
@@ -77,8 +72,6 @@ class Toolbar extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this._setButtonHandlers();
|
||||
|
||||
// Bind callbacks to preverse this.
|
||||
this._renderToolbarButton = this._renderToolbarButton.bind(this);
|
||||
}
|
||||
@@ -154,35 +147,6 @@ class Toolbar extends Component {
|
||||
|
||||
return acc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets handlers for some of the buttons.
|
||||
*
|
||||
* @private
|
||||
* @returns {void}
|
||||
*/
|
||||
_setButtonHandlers(): void {
|
||||
const {
|
||||
buttonHandlers,
|
||||
toolbarButtons
|
||||
} = this.props;
|
||||
|
||||
// Only a few buttons have buttonHandlers defined, so it may be
|
||||
// undefined or empty depending on the buttons rendered.
|
||||
// TODO Merge the buttonHandlers and onClick properties and come up with
|
||||
// a consistent event handling property.
|
||||
buttonHandlers && Object.keys(buttonHandlers).forEach(key => {
|
||||
let button = toolbarButtons.get(key);
|
||||
|
||||
if (button) {
|
||||
button = {
|
||||
...button,
|
||||
...buttonHandlers[key]
|
||||
};
|
||||
toolbarButtons.set(key, button);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user