Changes the raise hand event name to fit better the action

This commit is contained in:
yanas 2016-09-16 10:17:49 -05:00
parent bd46430434
commit 8b7bdb4957
4 changed files with 5 additions and 5 deletions

View File

@ -1648,7 +1648,7 @@ export default {
setRaisedHand(raisedHand) { setRaisedHand(raisedHand) {
if (raisedHand !== this.isHandRaised) if (raisedHand !== this.isHandRaised)
{ {
APP.UI.onRaiseHandChanged(raisedHand); APP.UI.onLocalRaiseHandChanged(raisedHand);
this.isHandRaised = raisedHand; this.isHandRaised = raisedHand;
// Advertise the updated status // Advertise the updated status

View File

@ -1217,8 +1217,8 @@ UI.onStartMutedChanged = function (startAudioMuted, startVideoMuted) {
* @param {boolean} isRaisedHand indicates the current state of the * @param {boolean} isRaisedHand indicates the current state of the
* "raised hand" * "raised hand"
*/ */
UI.onRaiseHandChanged = function (isRaisedHand) { UI.onLocalRaiseHandChanged = function (isRaisedHand) {
eventEmitter.emit(UIEvents.RAISE_HAND_CHANGED, isRaisedHand); eventEmitter.emit(UIEvents.LOCAL_RAISE_HAND_CHANGED, isRaisedHand);
}; };
/** /**

View File

@ -400,7 +400,7 @@ const Toolbar = {
isVisible); isVisible);
}); });
APP.UI.addListener(UIEvents.RAISE_HAND_CHANGED, APP.UI.addListener(UIEvents.LOCAL_RAISE_HAND_CHANGED,
function(isRaisedHand) { function(isRaisedHand) {
Toolbar._toggleRaiseHand(isRaisedHand); Toolbar._toggleRaiseHand(isRaisedHand);
}); });

View File

@ -110,7 +110,7 @@ export default {
/** /**
* Notifies that the raise hand has been changed. * Notifies that the raise hand has been changed.
*/ */
RAISE_HAND_CHANGED: "UI.raise_hand_changed", LOCAL_RAISE_HAND_CHANGED: "UI.local_raise_hand_changed",
/** /**
* Notifies that the avatar is displayed or not on the largeVideo. * Notifies that the avatar is displayed or not on the largeVideo.