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:
Horatiu Muresan
2021-10-21 12:40:57 +03:00
committed by GitHub
parent f435fc4ade
commit 4b7a6741fa
17 changed files with 97 additions and 78 deletions

View File

@@ -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),