Merge pull request #4490 from pedrobmarin/fix-4410

Updating presenter status
This commit is contained in:
Anton Georgiev 2017-10-10 17:53:52 -03:00 committed by GitHub
commit d9bf0c6752
2 changed files with 14 additions and 0 deletions

View File

@ -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 =>

View File

@ -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))
}