Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add social_db import and clearAllData method in cache clearing process

AmanRajSinghMourya1428e2d932d4
diff --git a/mobile/apps/photos/lib/core/configuration.dart b/mobile/apps/photos/lib/core/configuration.dart
index 5f70a895ef..05d4bd29b2 100644
--- a/mobile/apps/photos/lib/core/configuration.dart
+++ b/mobile/apps/photos/lib/core/configuration.dart
@@ -27,6 +27,7 @@ import "package:photos/db/gallery_downloads_db.dart";
import "package:photos/db/memories_db.dart";
import "package:photos/db/memory_shares_db.dart";
import "package:photos/db/ml/db.dart";
+import "package:photos/db/social_db.dart";
import 'package:photos/db/trash_db.dart';
import 'package:photos/db/upload_locks_db.dart';
import "package:photos/events/app_mode_changed_event.dart";
@@ -234,6 +235,7 @@ class Configuration implements LockScreenHost, AccountDeletionHost {
await UploadLocksDB.instance.clearTable();
await TrashDB.instance.clearTable();
await ContactsDatabase().clearTable();
+ await SocialDB.instance.clearAllData();
// Clear all in-memory caches
ThumbnailInMemoryLruCache.clearAll();