[graphql-chatlist-migration] - quick fix suggestion

This commit is contained in:
GuiLeme 2023-05-05 10:48:14 -03:00
parent 4676b74203
commit 7a43191cd1

View File

@ -51,8 +51,7 @@ trait CreateGroupChatReqMsgHdlr extends SystemConfiguration {
PermissionCheck.ejectUserForFailedPermission(meetingId, msg.header.userId, reason, bus.outGW, liveMeeting) PermissionCheck.ejectUserForFailedPermission(meetingId, msg.header.userId, reason, bus.outGW, liveMeeting)
state state
} else { } else {
val groupChat = GroupChatApp.getGroupChatOfUsers(msg.header.userId, msg.body.users, state) GroupChatApp.getGroupChatOfUsers(msg.header.userId, msg.body.users, state) match {
groupChat match {
case Some(groupChat) => case Some(groupChat) =>
ChatUserDAO.updateChatVisible(msg.header.meetingId, groupChat.id, msg.header.userId) ChatUserDAO.updateChatVisible(msg.header.meetingId, groupChat.id, msg.header.userId)
state state