Purge local

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

@ -306,7 +306,7 @@ class Core {
break; break;
case EntityOperation.PURGE: case EntityOperation.PURGE:
onPurgeFolder(context, jargs, folder, (POP3Folder) ifolder); onPurgeFolder(context, folder);
break; break;
default: default:
@ -1768,10 +1768,13 @@ class Core {
} finally { } finally {
int count = ifolder.getMessageCount(); int count = ifolder.getMessageCount();
db.folder().setFolderTotal(folder.id, count < 0 ? null : count); 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); DB db = DB.getInstance(context);
try { try {
db.beginTransaction(); db.beginTransaction();

Loading…
Cancel
Save