mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Fix prevention of adding group members a second time
This commit is contained in:
parent
ff998fce57
commit
caabde4acf
1 changed files with 4 additions and 1 deletions
|
@ -816,7 +816,10 @@ public class Manager implements Closeable {
|
|||
|
||||
if (members != null) {
|
||||
final Set<SignalServiceAddress> newMembers = new HashSet<>(members);
|
||||
newMembers.removeAll(group.getMembers());
|
||||
newMembers.removeAll(group.getMembers()
|
||||
.stream()
|
||||
.map(this::resolveSignalServiceAddress)
|
||||
.collect(Collectors.toSet()));
|
||||
if (newMembers.size() > 0) {
|
||||
Pair<DecryptedGroup, GroupChange> groupGroupChangePair = groupHelper.updateGroupV2(groupInfoV2,
|
||||
newMembers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue