diff --git a/pom.xml b/pom.xml index a553a99..e67519e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.2.58 + 0.2.59 diff --git a/src/main/java/de/srsoftware/widerhall/data/ListMember.java b/src/main/java/de/srsoftware/widerhall/data/ListMember.java index 967f967..92003f3 100644 --- a/src/main/java/de/srsoftware/widerhall/data/ListMember.java +++ b/src/main/java/de/srsoftware/widerhall/data/ListMember.java @@ -71,7 +71,7 @@ public class ListMember { if (member == null) { ListMember.create(list, moderator, ListMember.STATE_MODERATOR); } else { - member.setState(ListMember.STATE_MODERATOR); + member.setState((member.state | STATE_MODERATOR) ^ STATE_AWAITING_CONFIRMATION); } } catch (SQLException e) { LOG.warn("Failed to make {} a moderator of {}",moderator.email(),list.email(),e);