Skip to content

armgit / ente

Public Imported from GitHub
0

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

[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.dart
index 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;