mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 01:17:48 +00:00
feat(raised-hand) Change raisedHand to a timestamp instead of boole… (#10167)
- this was needed for sorting the raised hand participants in participants pane in the order they raised their hand also for participants joining late
This commit is contained in:
@@ -11,6 +11,7 @@ import { translate } from '../../../base/i18n';
|
||||
import { IconRaisedHand } from '../../../base/icons';
|
||||
import {
|
||||
getLocalParticipant,
|
||||
hasRaisedHand,
|
||||
raiseHand
|
||||
} from '../../../base/participants';
|
||||
import { connect } from '../../../base/redux';
|
||||
@@ -97,7 +98,7 @@ function _mapStateToProps(state, ownProps): Object {
|
||||
|
||||
return {
|
||||
_localParticipant,
|
||||
_raisedHand: _localParticipant.raisedHand,
|
||||
_raisedHand: hasRaisedHand(_localParticipant),
|
||||
visible
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import { translate } from '../../../base/i18n';
|
||||
import JitsiMeetJS from '../../../base/lib-jitsi-meet';
|
||||
import {
|
||||
getLocalParticipant,
|
||||
hasRaisedHand,
|
||||
haveParticipantWithScreenSharingFeature,
|
||||
raiseHand
|
||||
} from '../../../base/participants';
|
||||
@@ -488,12 +489,9 @@ class Toolbox extends Component<Props> {
|
||||
* @returns {void}
|
||||
*/
|
||||
_doToggleRaiseHand() {
|
||||
const { _localParticipantID, _raisedHand } = this.props;
|
||||
const newRaisedStatus = !_raisedHand;
|
||||
const { _raisedHand } = this.props;
|
||||
|
||||
this.props.dispatch(raiseHand(newRaisedStatus));
|
||||
|
||||
APP.API.notifyRaiseHandUpdated(_localParticipantID, newRaisedStatus);
|
||||
this.props.dispatch(raiseHand(!_raisedHand));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1338,7 +1336,7 @@ function _mapStateToProps(state, ownProps) {
|
||||
_localVideo: localVideo,
|
||||
_overflowMenuVisible: overflowMenuVisible,
|
||||
_participantsPaneOpen: getParticipantsPaneOpen(state),
|
||||
_raisedHand: localParticipant?.raisedHand,
|
||||
_raisedHand: hasRaisedHand(localParticipant),
|
||||
_reactionsEnabled: isReactionsEnabled(state),
|
||||
_screenSharing: isScreenVideoShared(state),
|
||||
_tileViewEnabled: shouldDisplayTileView(state),
|
||||
|
||||
Reference in New Issue
Block a user