feat: emit raise hand event to external API (#8312)

* Expose raise hand event to external application

* Fix linting issues

* fix the app non existing issue
This commit is contained in:
Asif
2021-01-06 20:19:10 +05:30
committed by GitHub
parent 97dc07810c
commit cd29f10fa8
4 changed files with 24 additions and 1 deletions

View File

@@ -470,6 +470,7 @@ class Toolbox extends Component<Props, State> {
*/
_doToggleRaiseHand() {
const { _localParticipantID, _raisedHand } = this.props;
const newRaisedStatus = !_raisedHand;
this.props.dispatch(participantUpdated({
// XXX Only the local participant is allowed to update without
@@ -480,8 +481,10 @@ class Toolbox extends Component<Props, State> {
id: _localParticipantID,
local: true,
raisedHand: !_raisedHand
raisedHand: newRaisedStatus
}));
APP.API.notifyRaiseHandUpdated(_localParticipantID, newRaisedStatus);
}
/**