[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)
state
} else {
val groupChat = GroupChatApp.getGroupChatOfUsers(msg.header.userId, msg.body.users, state)
groupChat match {
GroupChatApp.getGroupChatOfUsers(msg.header.userId, msg.body.users, state) match {
case Some(groupChat) =>
ChatUserDAO.updateChatVisible(msg.header.meetingId, groupChat.id, msg.header.userId)
state