mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Delete virtual parent folders
This commit is contained in:
parent
ec8270a624
commit
cc42940dff
1 changed files with 3 additions and 1 deletions
|
@ -1766,7 +1766,9 @@ class Core {
|
|||
Log.i("Delete local count=" + local.size());
|
||||
for (String name : local.keySet()) {
|
||||
EntityFolder folder = local.get(name);
|
||||
if (EntityFolder.USER.equals(folder.type)) {
|
||||
List<EntityFolder> childs = parentFolders.get(name);
|
||||
if (EntityFolder.USER.equals(folder.type) ||
|
||||
childs == null || childs.size() == 0) {
|
||||
Log.i(name + " delete");
|
||||
db.folder().deleteFolder(account.id, name);
|
||||
} else
|
||||
|
|
Loading…
Add table
Reference in a new issue