Check message/attachment files on manual clean only

This commit is contained in:
M66B 2019-06-26 07:39:48 +02:00
parent 965dfdb84b
commit 1774a619e0
1 changed files with 21 additions and 19 deletions

View File

@ -135,6 +135,7 @@ public class WorkerCleanup extends Worker {
Log.w("Error deleting " + file);
}
if (manual) {
// Check message files
Log.i("Checking message files");
List<Long> mids = db.message().getMessageWithContent();
@ -158,6 +159,7 @@ public class WorkerCleanup extends Worker {
db.attachment().setUnavailable(aid);
}
}
}
Log.i("Cleanup contacts");
int contacts = db.contact().deleteContacts(now - KEEP_CONTACTS_DURATION);