Skip to content

Fix updateGroup --admin and --remove-member silent failures - #1970

Merged
AsamK merged 2 commits into
AsamK:masterfrom
joeykrim:fix/updategroup-retainall-type-mismatch
Mar 13, 2026
Merged

AsamK merged 2 commits into
AsamK:masterfrom
joeykrim:fix/updategroup-retainall-type-mismatch

Conversation

@joeykrim

Copy link
Copy Markdown
Contributor

Fix type mismatch in retainAll() calls that cause updateGroup --admin and --remove-member to silently do nothing.

retainAll() compared Set against Collection, which always evaluates to false (different types), emptying the set.

Replace group.getMembers() with group.getMemberRecipientIds() in all three affected locations.

Fixes: updateGroup --admin silently failing to promote members
Fixes: updateGroup --remove-member silently failing to remove members

Raised in issue: #1969

joey and others added 2 commits March 12, 2026 23:00
Fix type mismatch in retainAll() calls that cause updateGroup --admin
and --remove-member to silently do nothing.

retainAll() compared Set<RecipientId> against Collection<GroupMemberInfo>,
which always evaluates to false (different types), emptying the set.

Replace group.getMembers() with group.getMemberRecipientIds() in all
three affected locations.

Fixes: updateGroup --admin silently failing to promote members
Fixes: updateGroup --remove-member silently failing to remove members

@AsamK AsamK left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AsamK
AsamK merged commit 313f539 into AsamK:master Mar 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants