From 275f2a19b08ee2d68d9f5d01b7f692004b95731d Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Wed, 4 May 2022 00:03:30 +0200 Subject: [PATCH] bugfix --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/data/ListMember.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);