Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: behavior

Prateek Sunalac9f4e31810e
diff --git a/mobile/lib/services/preview_video_store.dart b/mobile/lib/services/preview_video_store.dart
index 65227aad53..2598025f5e 100644
--- a/mobile/lib/services/preview_video_store.dart
+++ b/mobile/lib/services/preview_video_store.dart
@@ -589,9 +589,9 @@ class PreviewVideoStore {
final allFiles = files
.where((file) => previewIds?[file.uploadedFileID] == null)
.sorted((a, b) {
- // put higher duration videos first
- final first = a.duration == null || a.duration! >= 20 * 60 * 60 ? 1 : 0;
- final second = b.duration == null || b.duration! >= 20 * 60 * 60 ? 1 : 0;
+ // put higher duration videos last
+ final first = a.duration == null || a.duration! >= 10 * 60 * 60 ? 1 : 0;
+ final second = b.duration == null || b.duration! >= 10 * 60 * 60 ? 1 : 0;
return first.compareTo(second);
}).toList();