π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] reduce attempts to check notification permission granted
Priyanshu Dangareea3d387460ee
diff --git a/mobile/apps/photos/lib/services/notification_service.dart b/mobile/apps/photos/lib/services/notification_service.dartindex 89311a8f44..f6dd806012 100644--- a/mobile/apps/photos/lib/services/notification_service.dart+++ b/mobile/apps/photos/lib/services/notification_service.dart@@ -168,7 +168,7 @@ class NotificationService {if (!context.mounted) return false;await _openNotificationSettings();const interval = Duration(milliseconds: 500);- const maxAttempts = 1000;+ const maxAttempts = 400;for (var attempt = 0; attempt < maxAttempts; attempt++) {await Future.delayed(interval);if (await hasGrantedPermissions()) return true;