Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] address system trash review comments

Priyanshu Dangared14a2b1041c7
diff --git a/mobile/apps/photos/lib/models/file/file.dart b/mobile/apps/photos/lib/models/file/file.dart
index e79af357df..9e4e390c8b 100644
--- a/mobile/apps/photos/lib/models/file/file.dart
+++ b/mobile/apps/photos/lib/models/file/file.dart
@@ -3,7 +3,6 @@ import 'package:logging/logging.dart';
import 'package:photo_manager/photo_manager.dart';
import 'package:photos/core/constants.dart';
import 'package:photos/models/file/file_type.dart';
-import "package:photos/models/file/trash_file.dart";
import 'package:photos/models/location/location.dart';
import "package:photos/models/metadata/file_magic.dart";
import "package:photos/module/download/file_url.dart";
@@ -117,9 +116,6 @@ class EnteFile {
if (localID == null) {
return Future.value(null);
}
- if (this is TrashFile && (this as TrashFile).systemTrashID != null) {
- return AssetEntity.fromId((this as TrashFile).systemTrashID!.toString());
- }
return AssetEntity.fromId(localID!);
}