From ac9f4e31810e646ddf9b8e33c38294259d27ecac Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Thu, 13 Feb 2025 12:46:43 +0530 Subject: [PATCH] fix: behavior --- mobile/lib/services/preview_video_store.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();