Allow V1 groups to be deleted by clearing app data.

This commit is contained in:
Nicholas 2023-02-03 16:47:43 -05:00 committed by Alex Hart
parent 9a1f8af703
commit aec4944c56

View file

@ -85,7 +85,9 @@ class DeleteAccountRepository {
while (groupRecord != null) {
if (groupRecord.getId().isPush() && groupRecord.isActive()) {
GroupManager.leaveGroup(ApplicationDependencies.getApplication(), groupRecord.getId().requirePush());
if (!groupRecord.isV1Group()) {
GroupManager.leaveGroup(ApplicationDependencies.getApplication(), groupRecord.getId().requirePush());
}
onDeleteAccountEvent.accept(new DeleteAccountEvent.LeaveGroupsProgress(groups.getCount(), ++groupsLeft));
}