Merge pull request #965 from jitsi/raise-hand-update

Updates raised hand to overwrite dominant speaker.
This commit is contained in:
yanas 2016-09-30 12:14:58 -05:00 committed by GitHub
commit 4ffe013165
2 changed files with 5 additions and 6 deletions

View File

@ -1812,14 +1812,10 @@ export default {
},
/**
* Toggles the local "raised hand" status, if the current state allows
* toggling.
* Toggles the local "raised hand" status.
*/
maybeToggleRaisedHand() {
// If we are the dominant speaker, we don't enable "raise hand".
if (this.isHandRaised || !this.isDominantSpeaker) {
this.setRaisedHand(!this.isHandRaised);
}
},
/**

View File

@ -593,6 +593,9 @@ var VideoLayout = {
? localVideoThumbnail : remoteVideos[id];
if (video) {
video.showRaisedHandIndicator(raisedHandStatus);
if (raisedHandStatus) {
video.showDominantSpeakerIndicator(false);
}
}
},