π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Minor fix
AmanRajSinghMourya842d3b724f75
diff --git a/mobile/apps/locker/lib/services/collections/collections_api_client.dart b/mobile/apps/locker/lib/services/collections/collections_api_client.dartindex 2b4f30d794..98d95929b1 100644--- a/mobile/apps/locker/lib/services/collections/collections_api_client.dart+++ b/mobile/apps/locker/lib/services/collections/collections_api_client.dart@@ -223,6 +223,7 @@ class CollectionApiClient {await _db.deleteCollection(collection);final deletedCollection = collection.copyWith(isDeleted: true);await _updateCollectionInDB(deletedCollection);+ Bus.instance.fire(CollectionsUpdatedEvent("delete_collection"));await CollectionService.instance.sync();}diff --git a/mobile/apps/locker/lib/services/collections/collections_service.dart b/mobile/apps/locker/lib/services/collections/collections_service.dartindex d500c14801..b04b62905a 100644--- a/mobile/apps/locker/lib/services/collections/collections_service.dart+++ b/mobile/apps/locker/lib/services/collections/collections_service.dart@@ -279,43 +279,6 @@ class CollectionService {}}- Future<void> trashFileFromAllCollections(- EnteFile file, {- bool runSync = true,- }) async {- try {- final collections = await getCollectionsForFile(file);-- if (collections.isEmpty) {- return;- }-- final List<TrashRequest> requests = [];- for (final collection in collections) {- requests.add(TrashRequest(file.uploadedFileID!, collection.id));- }-- if (requests.isNotEmpty) {- await _apiClient.trash(requests);- }-- for (final collection in collections) {- await _db.deleteFilesFromCollection(collection, [file]);- }-- Bus.instance- .fire(CollectionsUpdatedEvent('file_trashed_from_all_collections'));-- if (runSync) {- await sync();- await TrashService.instance.syncTrash();- }- } catch (e) {- _logger.severe("Failed to trash file from all collections: $e");- rethrow;- }- }-Future<void> rename(Collection collection, String newName) async {try {await _apiClient.rename(@@ -439,17 +402,17 @@ class CollectionService {if (files.isNotEmpty) {for (final file in files) {- await trashFileFromAllCollections(- file,- runSync: false,- );+ // Get all collections this file belongs to+ final fileCollections = await getCollectionsForFile(file);++ // Trash the file from ALL collections it belongs to+ for (final fileCollection in fileCollections) {+ await trashFile(file, fileCollection);+ }}}- await _apiClient.trashCollection(- collection,- keepFiles: false,- );+ await _apiClient.trashCollection(collection);Bus.instance.fire(CollectionsUpdatedEvent('collection_trashed_with_files'));diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lockindex a592563272..68699c4117 100644--- a/mobile/apps/photos/pubspec.lock+++ b/mobile/apps/photos/pubspec.lock@@ -2900,12 +2900,11 @@ packages:video_player:dependency: "direct overridden"description:- path: "packages/video_player/video_player"- ref: android_video_roation_fix- resolved-ref: "0acef25ca43206e02a0758b51d5fd176e3d8c6b8"- url: "https://github.com/ente-io/packages.git"- source: git- version: "2.7.0"+ name: video_player+ sha256: "0d55b1f1a31e5ad4c4967bfaa8ade0240b07d20ee4af1dfef5f531056512961a"+ url: "https://pub.dev"+ source: hosted+ version: "2.10.0"video_player_android:dependency: transitivedescription:diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yamlindex 8f588b394f..b3f43da338 100644--- a/mobile/apps/photos/pubspec.yaml+++ b/mobile/apps/photos/pubspec.yaml@@ -255,13 +255,7 @@ dependency_overrides:url: https://github.com/media-kit/media-kitpath: media_kit_videoprotobuf: ^3.1.0- # Override to match chewie fork's dependency on video_player from git- # This resolves conflict between chewie (git) and video_editor (hosted)- video_player:- git:- url: https://github.com/ente-io/packages.git- ref: android_video_roation_fix- path: packages/video_player/video_player/+ video_player: ^2.10.0watcher: ^1.1.0win32: "5.10.1"diff --git a/mobile/apps/photos/pubspec_overrides.yaml b/mobile/apps/photos/pubspec_overrides.yamlindex ccd819bd28..8347f97ba0 100644--- a/mobile/apps/photos/pubspec_overrides.yaml+++ b/mobile/apps/photos/pubspec_overrides.yaml@@ -40,8 +40,4 @@ dependency_overrides:path: ../../packages/log_viewernative_video_editor:path: ../../packages/native_video_editor- video_player:- git:- url: https://github.com/ente-io/packages.git- ref: android_video_roation_fix- path: packages/video_player/video_player/+ video_player: ^2.10.0