π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Remove limit of discovery section for non-internal users
ashilkn537f376ebdaf
diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dartindex e6c78cc5db..bbc1a9bd83 100644--- a/mobile/lib/services/magic_cache_service.dart+++ b/mobile/lib/services/magic_cache_service.dart@@ -197,13 +197,11 @@ class MagicCacheService {}///Returns random non-empty magic results from magicPromptsData- ///Length is capped at [limit], can be less than [limit] if there are not enough- ///non-empty results+ ///Length is number of prompts, can be less if there are not enough non-empty+ ///resultsFuture<List<MagicCache>> _nonEmptyMagicResults(List<dynamic> magicPromptsData,) async {- //Show all magic prompts to internal users for feedback on results- final limit = flagService.internalUser ? magicPromptsData.length : 4;final results = <MagicCache>[];final randomIndexes = List.generate(magicPromptsData.length,@@ -221,7 +219,7 @@ class MagicCacheService {),);}- if (results.length >= limit) {+ if (results.length >= magicPromptsData.length) {break;}}