mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-15 20:51:57 +00:00
Allow pending member invite cancelation.
This commit is contained in:
committed by
Greyson Parrelli
parent
1d63970a25
commit
68d29d9a0f
@@ -192,12 +192,13 @@ public final class GroupsV2Operations {
|
||||
.setPresentation(ByteString.copyFrom(presentation.serialize())));
|
||||
}
|
||||
|
||||
public GroupChange.Actions.Builder createRemoveInvitationChange(final Set<byte[]> uuidCipherTextsFromInvitesToRemove) {
|
||||
public GroupChange.Actions.Builder createRemoveInvitationChange(final Set<UuidCiphertext> uuidCipherTextsFromInvitesToRemove) {
|
||||
GroupChange.Actions.Builder builder = GroupChange.Actions
|
||||
.newBuilder();
|
||||
|
||||
for (byte[] uuidCipherText: uuidCipherTextsFromInvitesToRemove) {
|
||||
builder.addDeletePendingMembers(GroupChange.Actions.DeletePendingMemberAction.newBuilder().setDeletedUserId(ByteString.copyFrom(uuidCipherText)));
|
||||
for (UuidCiphertext uuidCipherText: uuidCipherTextsFromInvitesToRemove) {
|
||||
builder.addDeletePendingMembers(GroupChange.Actions.DeletePendingMemberAction.newBuilder()
|
||||
.setDeletedUserId(ByteString.copyFrom(uuidCipherText.serialize())));
|
||||
}
|
||||
|
||||
return builder;
|
||||
|
||||
Reference in New Issue
Block a user