diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 4a433e7a6e..38527a7d2e 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -808,7 +808,7 @@ public class XmppConnectionService extends Service { for (File file : Files.fileTraverser().breadthFirst(getCacheDir())) { if (file.isFile() && file.canRead() && file.canWrite()) { final var attrs = java.nio.file.Files.readAttributes(file.toPath(), java.nio.file.attribute.BasicFileAttributes.class); - if ((now - attrs.lastAccessTime().toMillis()) > 1000L * 60 * 60 * 24 * 10) { + if ((now - attrs.lastAccessTime().toMillis()) > 1000L * 60 * 60 * 24 * 30) { Log.d(Config.LOGTAG, "cleanupCache removing file not used recently: " + file); file.delete(); }