Auto fix inbox

This commit is contained in:
M66B 2019-03-03 16:48:39 +00:00
parent 0e2b1ef865
commit 8cff6353a6
1 changed files with 4 additions and 0 deletions

View File

@ -794,6 +794,10 @@ class Core {
db.folder().setFolderType(folder.id, type);
else if (EntityFolder.SYSTEM.equals(folder.type) && EntityFolder.USER.equals(type))
db.folder().setFolderType(folder.id, type);
else if (EntityFolder.INBOX.equals(type) && !EntityFolder.INBOX.equals(folder.type)) {
if (db.folder().getFolderByType(folder.account, EntityFolder.INBOX) == null)
db.folder().setFolderType(folder.id, type);
}
}
}
}