Updates raised hand to overwrite dominant speaker.

This commit is contained in:
damencho 2016-09-30 11:47:43 -05:00
parent 17b57ea852
commit 6320ef1caa
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);
}
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);
}
}
},