Fix remove from group bug.

fork-5.53.8
Cody Henthorne 2022-05-09 12:13:52 -04:00
rodzic 3553a28683
commit 02c8656b92
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -481,11 +481,11 @@ final class GroupManagerV2 {
} }
@WorkerThread @WorkerThread
@NonNull GroupManager.GroupActionResult ejectMember(@NonNull ServiceId authServiceId, boolean allowWhenBlocked, boolean ban) @NonNull GroupManager.GroupActionResult ejectMember(@NonNull ServiceId serviceId, boolean allowWhenBlocked, boolean ban)
throws GroupChangeFailedException, GroupInsufficientRightsException, IOException, GroupNotAMemberException throws GroupChangeFailedException, GroupInsufficientRightsException, IOException, GroupNotAMemberException
{ {
return commitChangeWithConflictResolution(authServiceId, return commitChangeWithConflictResolution(selfAci,
groupOperations.createRemoveMembersChange(Collections.singleton(authServiceId.uuid()), groupOperations.createRemoveMembersChange(Collections.singleton(serviceId.uuid()),
ban, ban,
ban ? v2GroupProperties.getDecryptedGroup().getBannedMembersList() ban ? v2GroupProperties.getDecryptedGroup().getBannedMembersList()
: Collections.emptyList()), : Collections.emptyList()),