π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show media hint only after local file deletion
Priyanshu Dangare49ddcb8b22b0
diff --git a/mobile/apps/photos/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dartindex cbce516dcc..45d0270e39 100644--- a/mobile/apps/photos/lib/utils/delete_file_util.dart+++ b/mobile/apps/photos/lib/utils/delete_file_util.dart@@ -898,6 +898,7 @@ Future<void> showDeleteSheet(showShortToast(context, l10n.movedToTrash);}+ var didDeleteLocalFiles = false;final actionResult = await showBottomSheetComponent<bool>(context: context,useRootNavigator: Platform.isIOS,@@ -907,18 +908,20 @@ Future<void> showDeleteSheet(count: deletableFiles.length,onDeleteFromLocal: () async {await deleteOnDeviceOnlyAction(context, deletableFiles);+ didDeleteLocalFiles = true;},onDeleteFromRemote: () async {await deleteFromEnte();},onDeleteFromBoth: () async {await deleteFromEverywhereAction(context, deletableFiles);+ didDeleteLocalFiles = true;},),);if (actionResult == true) {selectedFiles.clearAll();- if (hasLocalFiles) {+ if (didDeleteLocalFiles) {await showMediaManagementHintSheet(context);}}