Skip to content

Commit

Permalink
Allow V1 groups to be deleted by clearing app data.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-signal authored and alex-signal committed Feb 6, 2023
1 parent 9a1f8af commit aec4944
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ void deleteAccount(@NonNull Consumer<DeleteAccountEvent> onDeleteAccountEvent) {

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));
}

Expand Down

0 comments on commit aec4944

Please sign in to comment.