From cb727ca0849b4e6d94f3b4a0256714f486f8fcc1 Mon Sep 17 00:00:00 2001 From: delvh Date: Thu, 2 Apr 2020 20:32:54 +0200 Subject: [PATCH] fixed another bug --- src/main/java/envoy/event/GroupResizeEvent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/envoy/event/GroupResizeEvent.java b/src/main/java/envoy/event/GroupResizeEvent.java index 5f6791e..c750d7f 100644 --- a/src/main/java/envoy/event/GroupResizeEvent.java +++ b/src/main/java/envoy/event/GroupResizeEvent.java @@ -17,7 +17,7 @@ import envoy.data.User; * @author Leon Hofmeister * @since Envoy Common v0.1-beta */ -public class GroupResizeEvent extends Event { +public class GroupResizeEvent extends Event { private final long groupID; private final ElementOperation operation; @@ -35,7 +35,7 @@ public class GroupResizeEvent extends Event { * @since Envoy Common v0.2-alpha */ public GroupResizeEvent(User user, Group group, ElementOperation operation) { - super(user.getID()); + super(user); if (group.getContacts().contains(user)) { if (operation.equals(ElementOperation.ADD)) throw new IllegalStateException( "Cannot add " + user + " to group " + group.getID() + " because he is already a member of this group");