From 7a43191cd16b80698822b0e7dc3e52788f9c32dc Mon Sep 17 00:00:00 2001 From: GuiLeme Date: Fri, 5 May 2023 10:48:14 -0300 Subject: [PATCH] [graphql-chatlist-migration] - quick fix suggestion --- .../core/apps/groupchats/CreateGroupChatReqMsgHdlr.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/CreateGroupChatReqMsgHdlr.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/CreateGroupChatReqMsgHdlr.scala index 1bbe7cc1fe..949299f424 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/CreateGroupChatReqMsgHdlr.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/CreateGroupChatReqMsgHdlr.scala @@ -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