diff --git a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/bus/ReceivedJsonMsgHdlrActor.scala b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/bus/ReceivedJsonMsgHdlrActor.scala index d3c3523499..e4fac4ee47 100755 --- a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/bus/ReceivedJsonMsgHdlrActor.scala +++ b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/bus/ReceivedJsonMsgHdlrActor.scala @@ -67,6 +67,10 @@ class ReceivedJsonMsgHdlrActor(val msgFromAkkaAppsEventBus: MsgFromAkkaAppsEvent route[CheckAlivePongSysMsg](envelope, jsonNode) case UserEmojiChangedEvtMsg.NAME => route[UserEmojiChangedEvtMsg](envelope, jsonNode) + case PresenterUnassignedEvtMsg.NAME => + route[PresenterUnassignedEvtMsg](envelope, jsonNode) + case PresenterAssignedEvtMsg.NAME => + route[PresenterAssignedEvtMsg](envelope, jsonNode) case UserJoinedMeetingEvtMsg.NAME => route[UserJoinedMeetingEvtMsg](envelope, jsonNode) case UserLeftMeetingEvtMsg.NAME => diff --git a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/OldMeetingMsgHdlrActor.scala b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/OldMeetingMsgHdlrActor.scala index 69083fb436..0c8148fe16 100755 --- a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/OldMeetingMsgHdlrActor.scala +++ b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/meeting/OldMeetingMsgHdlrActor.scala @@ -26,6 +26,8 @@ class OldMeetingMsgHdlrActor(val olgMsgGW: OldMessageReceivedGW) case m: MeetingDestroyedEvtMsg => handleMeetingDestroyedEvtMsg(m) case m: CheckAlivePongSysMsg => handleCheckAlivePongSysMsg(m) case m: UserEmojiChangedEvtMsg => handleUserEmojiChangedEvtMsg(m) + case m: PresenterUnassignedEvtMsg => handlePresenterUnassignedEvtMsg(m) + case m: PresenterAssignedEvtMsg => handlePresenterAssignedEvtMsg(m) case m: UserJoinedMeetingEvtMsg => handleUserJoinedMeetingEvtMsg(m) case m: UserLeftMeetingEvtMsg => handleUserLeftMeetingEvtMsg(m) case m: UserJoinedVoiceConfToClientEvtMsg => handleUserJoinedVoiceConfToClientEvtMsg(m) @@ -76,6 +78,14 @@ class OldMeetingMsgHdlrActor(val olgMsgGW: OldMessageReceivedGW) } + def handlePresenterUnassignedEvtMsg(msg: PresenterUnassignedEvtMsg): Unit = { + olgMsgGW.handle(new UserStatusChanged(msg.header.meetingId, msg.body.intId, "presenter", "false")) + } + + def handlePresenterAssignedEvtMsg(msg: PresenterAssignedEvtMsg): Unit = { + olgMsgGW.handle(new UserStatusChanged(msg.header.meetingId, msg.body.presenterId, "presenter", "true")) + } + def handleUserEmojiChangedEvtMsg(msg: UserEmojiChangedEvtMsg): Unit = { //listener.handle(new UserStatusChanged(meetingId, userid, status, value)) }