π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove social feature flag checks
ashilkn00a00c5e77d7
diff --git a/mobile/apps/photos/lib/services/social_notification_coordinator.dart b/mobile/apps/photos/lib/services/social_notification_coordinator.dartindex 10cf23dea4..a4f377186e 100644--- a/mobile/apps/photos/lib/services/social_notification_coordinator.dart+++ b/mobile/apps/photos/lib/services/social_notification_coordinator.dart@@ -14,7 +14,6 @@ import 'package:photos/models/social/comment.dart';import 'package:photos/models/social/feed_item.dart';import 'package:photos/models/social/reaction.dart';import 'package:photos/models/social/social_data_provider.dart';-import 'package:photos/service_locator.dart';import 'package:photos/services/app_lifecycle_service.dart';import 'package:photos/services/collections_service.dart';import 'package:photos/services/language_service.dart';@@ -126,9 +125,6 @@ class SocialNotificationCoordinator {)) {return;}- if (!flagService.isSocialEnabled) {- return;- }final userID = Configuration.instance.getUserID();if (userID == null) {return;diff --git a/mobile/apps/photos/lib/services/social_sync_service.dart b/mobile/apps/photos/lib/services/social_sync_service.dartindex 2dc560423b..7ebd862917 100644--- a/mobile/apps/photos/lib/services/social_sync_service.dart+++ b/mobile/apps/photos/lib/services/social_sync_service.dart@@ -7,7 +7,6 @@ import 'package:photos/models/social/anon_profile.dart';import 'package:photos/models/social/api_responses.dart';import 'package:photos/models/social/comment.dart';import 'package:photos/models/social/reaction.dart';-import 'package:photos/service_locator.dart';import 'package:photos/services/social_service.dart';/// Service for syncing social data (comments and reactions) with the server.@@ -159,10 +158,6 @@ class SocialSyncService {/// Uses the /comments-reactions/updated-at endpoint to determine which/// collections actually need syncing, avoiding unnecessary API calls.Future<bool> syncAllSharedCollections() async {- if (!flagService.isSocialEnabled) {- _logger.info('Social features disabled, skipping sync');- return false;- }if (_isSyncing) {_logger.info('Sync already in progress, skipping');return false;diff --git a/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart b/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dartindex 048013e551..83ea2ffffe 100644--- a/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart+++ b/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart@@ -170,7 +170,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>margin: const EdgeInsets.only(bottom: 50),child: Column(children: [- if (flagService.isSocialEnabled) const FeedPreviewWidget(),+ const FeedPreviewWidget(),Column(mainAxisSize: MainAxisSize.min,children: [diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dartindex 5b0ace5bca..8296f8c120 100644--- a/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart@@ -257,9 +257,8 @@ class FileBottomBarState extends State<FileBottomBar> {);}- // Add social icons (heart, comment) if file is in a shared collection- // and social features are enabled- if (isInSharedCollection && flagService.isSocialEnabled) {+ // Add social icons (heart, comment) for files in shared collections.+ if (isInSharedCollection) {children.add(_buildHeartIcon());children.add(_buildCommentIcon());}diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dartindex 2309a58c2e..6483bddd5a 100644--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart@@ -13,7 +13,6 @@ import "model.dart";class FlagService {static const int _uploadV2Flag = 1 << 0;- static const int _commentsFlag = 1 << 1;static const int _backupOptionsFlag = 1 << 2;static const int _videoStreamingFlag = 1 << 3;@@ -99,9 +98,6 @@ class FlagService {bool get enableShareePin => true;- bool get isSocialEnabled =>- internalUser || _isServerFlagEnabled(_commentsFlag);-bool get useRustForML => internalUser;bool get useRustForFaceThumbnails => internalUser;