Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: re-enable foreground sync

Prateek Sunalf7ace0a57faa
diff --git a/mobile/lib/services/sync/remote_sync_service.dart b/mobile/lib/services/sync/remote_sync_service.dart
index 4d72f9924a..ba4cf0282d 100644
--- a/mobile/lib/services/sync/remote_sync_service.dart
+++ b/mobile/lib/services/sync/remote_sync_service.dart
@@ -91,11 +91,6 @@ class RemoteSyncService {
}
Future<void> sync({bool silently = false}) async {
- // TODO(prateekmedia): Remove this to enable foregroung uploads
- if (AppLifecycleService.instance.isForeground) {
- _logger.info("Skipping remote sync since app is in foreground");
- return;
- }
if (!_config.hasConfiguredAccount()) {
_logger.info("Skipping remote sync since account is not configured");
return;