Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Stop consuming errors for trash

Neeraj Gupta772373580afc
diff --git a/mobile/lib/services/remote_sync_service.dart b/mobile/lib/services/remote_sync_service.dart
index c1348ba45f..b5f1fecd82 100644
--- a/mobile/lib/services/remote_sync_service.dart
+++ b/mobile/lib/services/remote_sync_service.dart
@@ -121,13 +121,7 @@ class RemoteSyncService {
await syncDeviceCollectionFilesForUpload();
}
await _pullDiff();
- // sync trash but consume error during initial launch.
- // this is to ensure that we don't pause upload due to any error during
- // the trash sync. Impact: We may end up re-uploading a file which was
- // recently trashed.
- await TrashSyncService.instance
- .syncTrash()
- .onError((e, s) => _logger.severe('trash sync failed', e, s));
+ await TrashSyncService.instance.syncTrash();
if (!hasSyncedBefore) {
await _prefs.setBool(_isFirstRemoteSyncDone, true);
await syncDeviceCollectionFilesForUpload();