mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Fixed cleanup cached images
This commit is contained in:
parent
eb4a218624
commit
d2ab30734f
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ public class WorkerCleanup extends Worker {
|
|||
if (images != null)
|
||||
for (File file : images)
|
||||
if (manual || file.lastModified() + KEEP_FILES_DURATION < now) {
|
||||
long id = Long.parseLong(file.getName().split("_")[0]);
|
||||
long id = Long.parseLong(file.getName().split("[_\\.]")[0]);
|
||||
EntityMessage message = db.message().getMessage(id);
|
||||
if (manual || message == null ||
|
||||
file.lastModified() + KEEP_IMAGES_DURATION < now) {
|
||||
|
|
Loading…
Reference in a new issue