fixed another bug
This commit is contained in:
parent
8bf68bda1a
commit
cb727ca084
@ -17,7 +17,7 @@ import envoy.data.User;
|
|||||||
* @author Leon Hofmeister
|
* @author Leon Hofmeister
|
||||||
* @since Envoy Common v0.1-beta
|
* @since Envoy Common v0.1-beta
|
||||||
*/
|
*/
|
||||||
public class GroupResizeEvent extends Event<Long> {
|
public class GroupResizeEvent extends Event<User> {
|
||||||
|
|
||||||
private final long groupID;
|
private final long groupID;
|
||||||
private final ElementOperation operation;
|
private final ElementOperation operation;
|
||||||
@ -35,7 +35,7 @@ public class GroupResizeEvent extends Event<Long> {
|
|||||||
* @since Envoy Common v0.2-alpha
|
* @since Envoy Common v0.2-alpha
|
||||||
*/
|
*/
|
||||||
public GroupResizeEvent(User user, Group group, ElementOperation operation) {
|
public GroupResizeEvent(User user, Group group, ElementOperation operation) {
|
||||||
super(user.getID());
|
super(user);
|
||||||
if (group.getContacts().contains(user)) {
|
if (group.getContacts().contains(user)) {
|
||||||
if (operation.equals(ElementOperation.ADD)) throw new IllegalStateException(
|
if (operation.equals(ElementOperation.ADD)) throw new IllegalStateException(
|
||||||
"Cannot add " + user + " to group " + group.getID() + " because he is already a member of this group");
|
"Cannot add " + user + " to group " + group.getID() + " because he is already a member of this group");
|
||||||
|
Reference in New Issue
Block a user