Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] propagate remote delete errors

Priyanshu Dangare2c4cd6b6095d
diff --git a/mobile/apps/photos/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dart
index f9703efc65..cbce516dcc 100644
--- a/mobile/apps/photos/lib/utils/delete_file_util.dart
+++ b/mobile/apps/photos/lib/utils/delete_file_util.dart
@@ -894,14 +894,8 @@ Future<void> showDeleteSheet(
}
Future<void> deleteFromEnte() async {
- await deleteFromRemoteOnlyAction(context, deletableFiles).then(
- (value) {
- showShortToast(context, l10n.movedToTrash);
- },
- onError: (e, s) {
- showGenericErrorDialog(context: context, error: e);
- },
- );
+ await deleteFromRemoteOnlyAction(context, deletableFiles);
+ showShortToast(context, l10n.movedToTrash);
}
final actionResult = await showBottomSheetComponent<bool>(