Delete user from private chat list when he leaves the conference.

This commit is contained in:
Ghazi Triki 2017-11-27 18:24:12 +01:00
parent 1378a75bdd
commit eacafb6c87
2 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,6 @@
package org.bigbluebutton.main.events
{
import flash.events.Event;
import org.bigbluebutton.main.model.User;
public class UserLeftEvent extends Event
{

View File

@ -82,6 +82,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function handleUserLeftEvent(event: UserLeftEvent): void {
handler.handleUserLeftEvent(event.userID);
handler.populateAllUsers();
users = removeMe(handler.users);
}
private function handleNewGroupChatEvent(event:CoreEvent):void {
@ -90,7 +92,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function handleUserJoinedEvent(event: UserJoinedEvent):void {
handler.handleUserJoinedEvent(event);
handler.populateAllUsers()
handler.populateAllUsers();
users = removeMe(handler.users);
}
@ -111,7 +113,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function onCreationComplete():void{
amIModerator = UsersUtil.amIModerator();
handler.populateAllUsers()
handler.populateAllUsers();
handler.populateAllGroupChats()
users = removeMe(handler.users);
groupChats = handler.groupChats;