From 7f06d2a766685943830f22bd05ea0c6226ed9c9a Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Thu, 4 Jun 2015 20:50:38 +0000 Subject: [PATCH] - fix switch presenter display in user's list --- .../red5/client/UserClientMessageSender.java | 3 +-- .../org/bigbluebutton/main/model/users/BBBUser.as | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/UserClientMessageSender.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/UserClientMessageSender.java index 7b39c615e0..4cd3a662ad 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/UserClientMessageSender.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/UserClientMessageSender.java @@ -356,8 +356,7 @@ public class UserClientMessageSender { message.put("msg", gson.toJson(args)); System.out.println("RedisPubSubMessageHandler - processUserStatusChangedMessage \n" + message.get("msg") + "\n"); - - + BroadcastClientMessage m = new BroadcastClientMessage(msg.meetingId, "participantStatusChange", message); service.sendMessage(m); } diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/BBBUser.as b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/BBBUser.as index be611b3e20..59a79fd335 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/BBBUser.as +++ b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/BBBUser.as @@ -283,14 +283,14 @@ package org.bigbluebutton.main.model.users trace("changeStatus -> " + status.name); //_status.changeStatus(status); if (status.name == "presenter") { - presenter = status.value; + presenter = (status.value.toString().toUpperCase() == "TRUE") ? true : false; //As the lock settings are now not applied to presenters, when the presenter flag is changed, we need to apply the lock settings applyLockSettings(); } switch (status.name) { case "presenter": - presenter = status.value; + presenter = (status.value.toString().toUpperCase() == "TRUE") ? true : false; break; case "hasStream": var streamInfo:Array = String(status.value).split(/,/); @@ -305,10 +305,10 @@ package org.bigbluebutton.main.model.users streamName = streamNameInfo[1]; break; case "raiseHand": - raiseHand = status.value as Boolean; - if (me) { - UserManager.getInstance().getConference().isMyHandRaised = status.value; - } + raiseHand = (status.value.toString().toUpperCase() == "TRUE") ? true : false; + if (me) { + UserManager.getInstance().getConference().isMyHandRaised = status.value; + } break; } buildStatus();