diff --git a/client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java b/client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java index be19bed..71c7dd4 100644 --- a/client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java +++ b/client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java @@ -152,7 +152,7 @@ public class GroupCreationScene { .map(Chat::getRecipient) .filter(Group.class::isInstance) .map(Contact::getName) - .anyMatch(groupName -> groupName.equals(newName)); + .anyMatch(newName::equals); } @FXML