we do not expect requests for users or chathistory. These replies are automatically sent on successful validation
This commit is contained in:
parent
77f5eaf6cf
commit
5bcd1e9dcd
@ -32,20 +32,13 @@ public class ChatMessageListener implements MessageHandler{
|
||||
eventName = eventName.replace("\"", "");
|
||||
|
||||
if (eventName.equalsIgnoreCase("public_chat_message_event") ||
|
||||
eventName.equalsIgnoreCase("send_public_chat_message") || //identical
|
||||
eventName.equalsIgnoreCase("send_public_chat_message") ||
|
||||
eventName.equalsIgnoreCase("private_chat_message_event") ||
|
||||
eventName.equalsIgnoreCase("send_private_chat_message") ||//identical
|
||||
eventName.equalsIgnoreCase("get_chat_history")){
|
||||
eventName.equalsIgnoreCase("send_private_chat_message")){
|
||||
|
||||
String meetingID = payloadObject.get("meeting_id").toString().replace("\"", "");
|
||||
String requesterID = payloadObject.get("requester_id").toString().replace("\"", "");
|
||||
|
||||
//case getChatHistory
|
||||
if(eventName.equalsIgnoreCase("get_chat_history")) {
|
||||
String replyTo = meetingID + "/" + requesterID;
|
||||
bbbGW.getChatHistory(meetingID, requesterID, replyTo);
|
||||
}
|
||||
else {
|
||||
String chatType = messageObject.get("chat_type").toString().replace("\"", "");
|
||||
String fromUserID = messageObject.get("from_userid").toString().replace("\"", "");
|
||||
String fromUsername = messageObject.get("from_username").toString().replace("\"", "");
|
||||
@ -88,4 +81,3 @@ public class ChatMessageListener implements MessageHandler{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,6 @@ public class ParticipantsListener implements MessageHandler{
|
||||
if(eventName.equalsIgnoreCase("register_user_request") ||
|
||||
eventName.equalsIgnoreCase("user_left_event") ||
|
||||
eventName.equalsIgnoreCase("user_joined_event") ||
|
||||
eventName.equalsIgnoreCase("get_users_request") ||
|
||||
eventName.equalsIgnoreCase("raise_user_hand_request")){
|
||||
|
||||
String roomName = payloadObject.get("meeting_id").toString().replace("\"", "");
|
||||
@ -54,10 +53,6 @@ public class ParticipantsListener implements MessageHandler{
|
||||
|
||||
bbbInGW.userJoin(roomName, userID);
|
||||
}
|
||||
else if(eventName.equalsIgnoreCase("get_users_request")){
|
||||
String requesterID = payloadObject.get("requester_id").toString().replace("\"", "");
|
||||
bbbInGW.getUsers(roomName, requesterID);
|
||||
}
|
||||
else if(eventName.equalsIgnoreCase("raise_user_hand_request")){
|
||||
String userID = payloadObject.get("user_id").toString().replace("\"", "");
|
||||
boolean raise = Boolean.parseBoolean(payloadObject.get("raise").toString().replace("\"", ""));
|
||||
|
Loading…
Reference in New Issue
Block a user