Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor

Neeraj Gupta6464bf172f58
diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dart
index ba96daeba5..3178e8c4ca 100644
--- a/mobile/lib/services/magic_cache_service.dart
+++ b/mobile/lib/services/magic_cache_service.dart
@@ -174,7 +174,7 @@ class MagicCacheService {
_updateCacheIfTheTimeHasCome();
});
Bus.instance.on<FileUploadedEvent>().listen((event) {
- _pendingUpdateReason.add("File uploaded");
+ queueUpdate("File uploaded");
});
}
@@ -202,12 +202,12 @@ class MagicCacheService {
final updatedJSONFile = await RemoteAssetsService.instance
.getAssetIfUpdated(_kMagicPromptsDataUrl);
if (updatedJSONFile != null) {
- _pendingUpdateReason.add("Prompts data updated");
+ queueUpdate("Prompts data updated");
} else if (lastMagicCacheUpdateTime <
DateTime.now()
.subtract(const Duration(days: 1))
.millisecondsSinceEpoch) {
- _pendingUpdateReason.add("Cache is old");
+ queueUpdate("Cache is old");
}
}