- set the bbbuser status to not talking when she leaves the voice conference
This commit is contained in:
parent
744f209bcc
commit
4ae34689dc
@ -224,9 +224,8 @@ package org.bigbluebutton.modules.listeners.business
|
||||
}
|
||||
}
|
||||
|
||||
public function userTalk(userId:Number, talk:Boolean) : void
|
||||
{
|
||||
trace("User talking event");
|
||||
public function userTalk(userId:Number, talk:Boolean):void {
|
||||
trace("ListenersSOService:: User talking event userID=[" + userId + "] talking=[" + talk + "]");
|
||||
var l:Listener = _listeners.getListener(userId);
|
||||
if (l != null) {
|
||||
l.talking = talk;
|
||||
@ -242,19 +241,20 @@ package org.bigbluebutton.modules.listeners.business
|
||||
}
|
||||
}
|
||||
|
||||
public function userLeft(userId:Number):void
|
||||
{
|
||||
_listeners.removeListener(userId);
|
||||
public function userLeft(userID:Number):void {
|
||||
// Set the user to not talking. This will update UIs that depend on the user talking state.
|
||||
userTalk(userID, false);
|
||||
|
||||
/**
|
||||
* Let's store the voice userid so we can do push to talk.
|
||||
*/
|
||||
if (UserManager.getInstance().getConference().amIThisVoiceUser(userId)) {
|
||||
if (UserManager.getInstance().getConference().amIThisVoiceUser(userID)) {
|
||||
UserManager.getInstance().getConference().setMyVoiceJoined(false);
|
||||
UserManager.getInstance().getConference().setMyVoiceUserId(0);
|
||||
UserManager.getInstance().getConference().setMyVoiceJoined(false);
|
||||
}
|
||||
|
||||
var bu:BBBUser = UsersUtil.getVoiceUser(userId)
|
||||
var bu:BBBUser = UsersUtil.getVoiceUser(userID)
|
||||
if (bu != null) {
|
||||
bu.voiceUserid = 0;
|
||||
bu.voiceMuted = false;
|
||||
@ -264,6 +264,8 @@ package org.bigbluebutton.modules.listeners.business
|
||||
bbbEvent.payload.userID = bu.userID;
|
||||
globalDispatcher.dispatchEvent(bbbEvent);
|
||||
}
|
||||
|
||||
_listeners.removeListener(userID);
|
||||
}
|
||||
|
||||
public function ping(message:String):void {
|
||||
@ -486,4 +488,4 @@ package org.bigbluebutton.modules.listeners.business
|
||||
_soErrors.push(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user