Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: only throw notifications for sync to internal users

Prateek Sunal6d952cc89eb0
diff --git a/mobile/lib/utils/bg_task_utils.dart b/mobile/lib/utils/bg_task_utils.dart
index 75cbe3001e..f4856240da 100644
--- a/mobile/lib/utils/bg_task_utils.dart
+++ b/mobile/lib/utils/bg_task_utils.dart
@@ -4,6 +4,7 @@ import "package:logging/logging.dart";
import "package:permission_handler/permission_handler.dart";
import "package:photos/db/upload_locks_db.dart";
import "package:photos/main.dart";
+import "package:photos/service_locator.dart";
import "package:photos/utils/file_uploader.dart";
import "package:shared_preferences/shared_preferences.dart";
import "package:workmanager/workmanager.dart" as workmanager;
@@ -55,8 +56,7 @@ class BgTaskUtils {
try {
await workmanager.Workmanager().initialize(
callbackDispatcher,
- isInDebugMode:
- true, // TODO(prateekmedia): Remove when merged to production
+ isInDebugMode: flagService.internalUser,
);
await workmanager.Workmanager().registerPeriodicTask(
backgroundTaskIdentifier,