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

@@ -2,7 +2,7 @@
import { Component } from 'react';
import { getParticipantById } from '../../base/participants';
import { getParticipantById, hasRaisedHand } from '../../base/participants';
export type Props = {
@@ -57,6 +57,6 @@ export function _mapStateToProps(state: Object, ownProps: Props): Object {
const participant = getParticipantById(state, ownProps.participantId);
return {
_raisedHand: participant && participant.raisedHand
_raisedHand: hasRaisedHand(participant)
};
}