Selaa lähdekoodia

Remove unnecessary check since files within updation events will now always have creationTimes

vishnukvmd 3 vuotta sitten
vanhempi
commit
ce8855a2cb
1 muutettua tiedostoa jossa 1 lisäystä ja 5 poistoa
  1. 1 5
      lib/ui/huge_listview/lazy_loading_gallery.dart

+ 1 - 5
lib/ui/huge_listview/lazy_loading_gallery.dart

@@ -80,11 +80,7 @@ class _LazyLoadingGalleryState extends State<LazyLoadingGallery> {
   Future _onReload(FilesUpdatedEvent event) async {
     final galleryDate =
         DateTime.fromMicrosecondsSinceEpoch(_files[0].creationTime);
-    final filesUpdatedThisDay = event.updatedFiles
-        .where((file) =>
-            file.creationTime !=
-            null) // Filtering out noise of deleted files diff from server
-        .where((file) {
+    final filesUpdatedThisDay = event.updatedFiles.where((file) {
       final fileDate = DateTime.fromMicrosecondsSinceEpoch(file.creationTime);
       return fileDate.year == galleryDate.year &&
           fileDate.month == galleryDate.month &&