Prevent updates to blocked groups.

This commit is contained in:
Cody Henthorne
2022-01-24 14:21:21 -05:00
committed by GitHub
parent 35d0f1fc8c
commit 642d37edb2
6 changed files with 29 additions and 8 deletions

View File

@@ -621,6 +621,10 @@ final class GroupManagerV2 {
final DecryptedGroup decryptedGroupState;
final DecryptedGroup previousGroupState;
if (Recipient.externalGroupExact(context, groupId).isBlocked()) {
throw new GroupChangeFailedException("Group is blocked.");
}
try {
previousGroupState = v2GroupProperties.getDecryptedGroup();
decryptedChange = groupOperations.decryptChange(changeActions, selfAci.uuid());