Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: remove temp directory clearing on logout to preserve ML models

Prateek Sunala934e92c85a7
diff --git a/mobile/apps/photos/lib/core/configuration.dart b/mobile/apps/photos/lib/core/configuration.dart
index 1b16008cd2..765e29f071 100644
--- a/mobile/apps/photos/lib/core/configuration.dart
+++ b/mobile/apps/photos/lib/core/configuration.dart
@@ -262,17 +262,6 @@ class Configuration {
} else {
await _preferences.setBool("auto_logout", true);
}
-
- // Clear temporary directories
- try {
- final tempDir = Directory(_tempDocumentsDirPath);
- if (await tempDir.exists()) {
- await tempDir.delete(recursive: true);
- await tempDir.create(recursive: true);
- }
- } catch (e) {
- _logger.warning("Failed to clear temp directory", e);
- }
}
bool showAutoLogoutDialog() {