Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix inconsistent behavior when deleting from Ente

Prateek Sunal95175917a1c2
diff --git a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
index 5714251a2b..513d93b6f8 100644
--- a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
+++ b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
@@ -62,10 +62,8 @@ Future<void> showSingleFileDeleteSheet(
onTap: () async {
await deleteFilesFromRemoteOnly(context, [file]);
showShortToast(context, AppLocalizations.of(context).movedToTrash);
- if (isRemoteOnly) {
- if (onFileRemoved != null) {
- onFileRemoved(file);
- }
+ if (onFileRemoved != null) {
+ onFileRemoved(file);
}
},
),