Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update recover options from Trash

vishnukvmd07e77489b192
diff --git a/mobile/apps/locker/lib/ui/components/file_restore_dialog.dart b/mobile/apps/locker/lib/ui/components/file_restore_dialog.dart
index b603817da3..54eda2fa7c 100644
--- a/mobile/apps/locker/lib/ui/components/file_restore_dialog.dart
+++ b/mobile/apps/locker/lib/ui/components/file_restore_dialog.dart
@@ -38,9 +38,6 @@ class _FileRestoreDialogState extends State<FileRestoreDialog> {
void initState() {
super.initState();
_availableCollections = List.from(widget.collections);
- if (_availableCollections.isNotEmpty) {
- _selectedCollectionIds.add(_availableCollections.first.id);
- }
}
void _toggleCollection(int collectionId) {
diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dart
index d2c31b51dc..550939df60 100644
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@ -77,7 +77,12 @@ class _TrashPageState extends State<TrashPage> {
final collections = await CollectionService.instance.getCollections();
final availableCollections = uniqueCollectionsById(
- collections.where((c) => !c.isDeleted).toList(),
+ collections
+ .where(
+ (c) =>
+ !c.isDeleted && c.type != CollectionType.uncategorized,
+ )
+ .toList(),
);
if (availableCollections.isEmpty) {