Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Use better names

ashilkn9fa1e779470e
diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dart
index 59302034e7..0907b46a77 100644
--- a/mobile/lib/services/magic_cache_service.dart
+++ b/mobile/lib/services/magic_cache_service.dart
@@ -97,9 +97,9 @@ class MagicCacheService {
if (!localSettings.isMLIndexingEnabled) {
return;
}
- final jsonFile = await RemoteAssetsService.instance
+ final updatedJSONFile = await RemoteAssetsService.instance
.getAssetIfUpdated(_kMagicPromptsDataUrl);
- if (jsonFile != null) {
+ if (updatedJSONFile != null) {
Future.delayed(_kCacheUpdateDelay, () {
unawaited(_updateCache());
});
@@ -204,14 +204,14 @@ class MagicCacheService {
) async {
final results = <MagicCache>[];
for (dynamic prompt in magicPromptsData) {
- final files = await _getMatchingFileIDsForPromptData(
+ final fileUploadedIDs = await _getMatchingFileIDsForPromptData(
prompt as Map<String, dynamic>,
);
- if (files.isNotEmpty) {
+ if (fileUploadedIDs.isNotEmpty) {
results.add(
MagicCache(
prompt["title"] as String,
- files,
+ fileUploadedIDs,
),
);
}