From 8b7bdb4957a23bfe548804184e88f63f68759d83 Mon Sep 17 00:00:00 2001 From: yanas Date: Fri, 16 Sep 2016 10:17:49 -0500 Subject: [PATCH] Changes the raise hand event name to fit better the action --- conference.js | 2 +- modules/UI/UI.js | 4 ++-- modules/UI/toolbars/Toolbar.js | 2 +- service/UI/UIEvents.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conference.js b/conference.js index 4d3eece68..500e7368a 100644 --- a/conference.js +++ b/conference.js @@ -1648,7 +1648,7 @@ export default { setRaisedHand(raisedHand) { if (raisedHand !== this.isHandRaised) { - APP.UI.onRaiseHandChanged(raisedHand); + APP.UI.onLocalRaiseHandChanged(raisedHand); this.isHandRaised = raisedHand; // Advertise the updated status diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 44b5af156..25da99633 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -1217,8 +1217,8 @@ UI.onStartMutedChanged = function (startAudioMuted, startVideoMuted) { * @param {boolean} isRaisedHand indicates the current state of the * "raised hand" */ -UI.onRaiseHandChanged = function (isRaisedHand) { - eventEmitter.emit(UIEvents.RAISE_HAND_CHANGED, isRaisedHand); +UI.onLocalRaiseHandChanged = function (isRaisedHand) { + eventEmitter.emit(UIEvents.LOCAL_RAISE_HAND_CHANGED, isRaisedHand); }; /** diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js index 344bacb51..f7576cf52 100644 --- a/modules/UI/toolbars/Toolbar.js +++ b/modules/UI/toolbars/Toolbar.js @@ -400,7 +400,7 @@ const Toolbar = { isVisible); }); - APP.UI.addListener(UIEvents.RAISE_HAND_CHANGED, + APP.UI.addListener(UIEvents.LOCAL_RAISE_HAND_CHANGED, function(isRaisedHand) { Toolbar._toggleRaiseHand(isRaisedHand); }); diff --git a/service/UI/UIEvents.js b/service/UI/UIEvents.js index 7d5c95d4b..c1ffa54a6 100644 --- a/service/UI/UIEvents.js +++ b/service/UI/UIEvents.js @@ -110,7 +110,7 @@ export default { /** * 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.