π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile/photos] Restore social feed gating outside shared-photo feed
Neeraj Gupta53f8d98b426e
diff --git a/mobile/apps/photos/lib/services/social_sync_service.dart b/mobile/apps/photos/lib/services/social_sync_service.dartindex 7ebd862917..2dc560423b 100644--- a/mobile/apps/photos/lib/services/social_sync_service.dart+++ b/mobile/apps/photos/lib/services/social_sync_service.dart@@ -7,6 +7,7 @@ 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.@@ -158,6 +159,10 @@ 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 83ea2ffffe..048013e551 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: [- const FeedPreviewWidget(),+ if (flagService.isSocialEnabled) const FeedPreviewWidget(),Column(mainAxisSize: MainAxisSize.min,children: [