π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Fix showRecent handling in all page
Neeraj Gupta637974f63b78
diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dartindex 3f7254d453..6a272b6328 100644--- a/mobile/lib/services/magic_cache_service.dart+++ b/mobile/lib/services/magic_cache_service.dart@@ -62,6 +62,7 @@ GenericSearchResult? toGenericSearchResult(ResultType.magic,prompt.title,enteFilesInMagicCache,+ params: {"enableGrouping": prompt.recentFirst},onResultTap: (ctx) {routeToPage(ctx,@@ -133,13 +134,11 @@ class MagicCacheService {.getAssetIfUpdated(_kMagicPromptsDataUrl);if (updatedJSONFile != null) {_pendingUpdateReason.add("Prompts data updated");- } else {- if (lastMagicCacheUpdateTime <- DateTime.now()- .subtract(const Duration(days: 3))- .millisecondsSinceEpoch) {- _pendingUpdateReason.add("Cache is old");- }+ } else if (lastMagicCacheUpdateTime <+ DateTime.now()+ .subtract(const Duration(days: 1))+ .millisecondsSinceEpoch) {+ _pendingUpdateReason.add("Cache is old");}}diff --git a/mobile/lib/ui/viewer/search/result/search_section_all_page.dart b/mobile/lib/ui/viewer/search/result/search_section_all_page.dartindex 587049801b..9ee58a5a63 100644--- a/mobile/lib/ui/viewer/search/result/search_section_all_page.dart+++ b/mobile/lib/ui/viewer/search/result/search_section_all_page.dart@@ -170,12 +170,10 @@ class _SearchSectionAllPageState extends State<SearchSectionAllPage> {MagicResultScreen(magicSectionResult.resultFiles(),name: magicSectionResult.name(),+ enableGrouping: magicSectionResult+ .params["enableGrouping"]! as bool,heroTag: "searchable_item" +- GenericSearchResult(- ResultType.magic,- magicSectionResult.name(),- magicSectionResult.resultFiles(),- ).heroTag(),+ magicSectionResult.heroTag(),),);},