diff --git a/src/main/java/de/caritas/cob/userservice/api/admin/service/rocketchat/RocketChatRemoveFromGroupOperationService.java b/src/main/java/de/caritas/cob/userservice/api/admin/service/rocketchat/RocketChatRemoveFromGroupOperationService.java index f52f759c6..e08560e11 100644 --- a/src/main/java/de/caritas/cob/userservice/api/admin/service/rocketchat/RocketChatRemoveFromGroupOperationService.java +++ b/src/main/java/de/caritas/cob/userservice/api/admin/service/rocketchat/RocketChatRemoveFromGroupOperationService.java @@ -81,12 +81,6 @@ public void removeFromGroupAndIgnoreGroupNotFound() { session.getGroupId(), consultants))); } - public void removeFromGroup() { - this.consultantsToRemoveFromSessions.forEach( - ((session, consultants) -> - removeConsultantsFromSessionGroup(session.getGroupId(), consultants))); - } - /** * Removes the given consultant from Rocket.Chat group of given session with rollback on error. */ diff --git a/src/main/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacade.java b/src/main/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacade.java index 9983253bb..060369c44 100644 --- a/src/main/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacade.java +++ b/src/main/java/de/caritas/cob/userservice/api/facade/assignsession/AssignEnquiryFacade.java @@ -163,7 +163,7 @@ private void removeUnauthorizedMembers( .onSessionConsultants(Map.of(session, consultantsToRemoveFromRocketChat)); if (rcGroupId.equalsIgnoreCase(session.getGroupId())) { - rocketChatRemoveFromGroupOperationService.removeFromGroup(); + rocketChatRemoveFromGroupOperationService.removeFromGroupAndIgnoreGroupNotFound(); } if (rcGroupId.equalsIgnoreCase(session.getFeedbackGroupId())) { rocketChatRemoveFromGroupOperationService.removeFromFeedbackGroup();