π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update logging
AmanRajSinghMourya2989db1d4de3
diff --git a/mobile/apps/photos/lib/services/sync/large_backup_session_tracker.dart b/mobile/apps/photos/lib/services/sync/large_backup_session_tracker.dartindex f21ef4b778..ef018f3069 100644--- a/mobile/apps/photos/lib/services/sync/large_backup_session_tracker.dart+++ b/mobile/apps/photos/lib/services/sync/large_backup_session_tracker.dart@@ -14,10 +14,11 @@ class LargeBackupSessionTracker extends ChangeNotifier {int _remainingCount = 0;SyncStatus? _lastStatus;+ // A backup can contain multiple upload batches. The session remains active+ // while the sync service prepares the next batch, even though the current+ // batch's remaining count is temporarily zero.bool get isActive => _isUploading && _isEligible;- bool get shouldOfferStandby => isActive && _remainingCount > 0;-int get remainingCount => _remainingCount;SyncStatus? get lastStatus => _lastStatus;@@ -52,12 +53,12 @@ class LargeBackupSessionTracker extends ChangeNotifier {break;}- if (_shouldLog(event)) {+ if (event.status != SyncStatus.inProgress || _remainingCount == 0) {_logger.internalInfo("status=${event.status.name}, total=${event.total}, ""completed=${event.completed}, uploading=$_isUploading, ""eligible=$_isEligible, remaining=$_remainingCount, "- "offerStandby=$shouldOfferStandby, "+ "active=$isActive, ""threshold=$minimumFileCount",);}@@ -67,14 +68,6 @@ class LargeBackupSessionTracker extends ChangeNotifier {}}- bool _shouldLog(SyncStatusUpdate event) {- if (event.status != SyncStatus.inProgress) {- return true;- }- final completed = event.completed ?? 0;- return completed <= 1 || completed % 100 == 0 || _remainingCount == 0;- }-void _reset() {_isEligible = false;_isUploading = false;