From caabde4acfc1c6bccec981ff763d6dca6f6ed383 Mon Sep 17 00:00:00 2001 From: AsamK Date: Fri, 25 Dec 2020 13:42:51 +0100 Subject: [PATCH] Fix prevention of adding group members a second time --- src/main/java/org/asamk/signal/manager/Manager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index e02106b9..2553a416 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -816,7 +816,10 @@ public class Manager implements Closeable { if (members != null) { final Set newMembers = new HashSet<>(members); - newMembers.removeAll(group.getMembers()); + newMembers.removeAll(group.getMembers() + .stream() + .map(this::resolveSignalServiceAddress) + .collect(Collectors.toSet())); if (newMembers.size() > 0) { Pair groupGroupChangePair = groupHelper.updateGroupV2(groupInfoV2, newMembers);