Purge local

pull/184/head
M66B 4 years ago
parent c7d476354b
commit a7586ec10f

@ -306,7 +306,7 @@ class Core {
break;
case EntityOperation.PURGE:
onPurgeFolder(context, jargs, folder, (POP3Folder) ifolder);
onPurgeFolder(context, folder);
break;
default:
@ -1768,10 +1768,13 @@ class Core {
} finally {
int count = ifolder.getMessageCount();
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);
// Delete local, hidden messages
onPurgeFolder(context, folder);
}
}
private static void onPurgeFolder(Context context, JSONArray jargs, EntityFolder folder, POP3Folder ifolder) throws MessagingException {
private static void onPurgeFolder(Context context, EntityFolder folder) {
DB db = DB.getInstance(context);
try {
db.beginTransaction();

Loading…
Cancel
Save