Przeglądaj źródła

Merge pull request #659 from ente-io/text_fix

Minor bug fixes
Ashil 2 lat temu
rodzic
commit
4ea97075e0

+ 1 - 1
lib/db/device_files_db.dart

@@ -392,7 +392,7 @@ extension DeviceFiles on FilesDB {
     final db = await database;
     final fileRows = await db.rawQuery(
       '''SELECT * FROM FILES  f JOIN device_files df on f.local_id = df.id 
-      and df.path_id= ? order by f.modification_time DESC limit 1;
+      and df.path_id= ? order by f.creation_time DESC limit 1;
           ''',
       [pathID],
     );

+ 5 - 1
lib/ui/collections_gallery_widget.dart

@@ -102,7 +102,11 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
         }
       },
     );
-    result.matched.removeWhere((element) => element.thumbnail == null);
+    result.matched.removeWhere(
+      (element) =>
+          element.thumbnail == null ||
+          (element.collection.publicURLs?.isNotEmpty ?? false),
+    );
     return result.matched + result.unmatched;
   }