π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update name
AmanRajSinghMourya2d97fb61e4ce
diff --git a/mobile/apps/locker/lib/utils/file_actions.dart b/mobile/apps/locker/lib/utils/file_actions.dartindex f88480f0a2..75acad0d33 100644--- a/mobile/apps/locker/lib/utils/file_actions.dart+++ b/mobile/apps/locker/lib/utils/file_actions.dart@@ -53,7 +53,7 @@ class FileActions {}// Fetch collections in case new ones were created during file edit dialog- final updatedCollections =+ final updatedAllCollections =await CollectionService.instance.getCollections();final dialog = createProgressDialog(@@ -115,7 +115,7 @@ class FileActions {for (final collectionId in collectionsToRemove) {try {final collection =- updatedCollections.firstWhere((c) => c.id == collectionId);+ updatedAllCollections.firstWhere((c) => c.id == collectionId);await CollectionService.instance.moveFilesFromCurrentCollection(context,collection,@@ -123,7 +123,7 @@ class FileActions {);} catch (e) {final collection =- updatedCollections.firstWhere((c) => c.id == collectionId);+ updatedAllCollections.firstWhere((c) => c.id == collectionId);_logger.severe('Failed to remove file from ${collection.name}: $e',);@@ -132,7 +132,7 @@ class FileActions {} else {for (final collectionId in collectionsToAdd) {final collection =- updatedCollections.firstWhere((c) => c.id == collectionId);+ updatedAllCollections.firstWhere((c) => c.id == collectionId);try {await CollectionService.instance.addToCollection(@@ -149,7 +149,7 @@ class FileActions {for (final collectionId in collectionsToRemove) {final collection =- updatedCollections.firstWhere((c) => c.id == collectionId);+ updatedAllCollections.firstWhere((c) => c.id == collectionId);await CollectionService.instance.moveFilesFromCurrentCollection(context, collection, [file]);}