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(participants-pane) fixed participants pane button toggled state
Calin Chitucf49af1a9f61
diff --git a/react/features/participants-pane/components/ParticipantsPaneButton.js b/react/features/participants-pane/components/ParticipantsPaneButton.jsindex a670900725..ca5f20a19a 100644--- a/react/features/participants-pane/components/ParticipantsPaneButton.js+++ b/react/features/participants-pane/components/ParticipantsPaneButton.js@@ -10,6 +10,11 @@ import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/com*/type Props = AbstractButtonProps & {+ /**+ * Whether or not the participants pane is open.+ */+ _isOpen: boolean,+/*** External handler for click action.*/@@ -34,6 +39,31 @@ class ParticipantsPaneButton extends AbstractButton<Props, *> {_handleClick() {this.props.handleClick();}++ /**+ * Indicates whether this button is in toggled state or not.+ *+ * @override+ * @protected+ * @returns {boolean}+ */+ _isToggled() {+ return this.props._isOpen;+ }+}++/**+ * Maps part of the Redux state to the props of this component.+ *+ * @param {Object} state - The Redux state.+ * @returns {Props}+ */+function mapStateToProps(state) {+ const { isOpen } = state['features/participants-pane'];++ return {+ _isOpen: isOpen+ };}-export default translate(connect()(ParticipantsPaneButton));+export default translate(connect(mapStateToProps)(ParticipantsPaneButton));