π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Enable contacts by default
Neeraj Guptad95a167927de
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dartindex 05cf6b83cb..f7dcfb8404 100644--- a/mobile/apps/photos/lib/main.dart+++ b/mobile/apps/photos/lib/main.dart@@ -515,7 +515,7 @@ Future<void> _init(unawaited(MLService.instance.init());PersonService.init(entityService, MLDataDB.instance, preferences);await PersonService.instance.refreshPersonCache();- if (!isBackground && flagService.enableContact) {+ if (!isBackground) {unawaited(_warmContactsCacheInBackground());}wrappedService.scheduleInitialLoad();diff --git a/mobile/apps/photos/lib/services/contacts/contact_identity_resolver.dart b/mobile/apps/photos/lib/services/contacts/contact_identity_resolver.dartindex 9814f0c9d2..edd2688e39 100644--- a/mobile/apps/photos/lib/services/contacts/contact_identity_resolver.dart+++ b/mobile/apps/photos/lib/services/contacts/contact_identity_resolver.dart@@ -1,6 +1,5 @@import "package:photos/extensions/user_extension.dart";import "package:photos/models/api/collection/user.dart";-import "package:photos/service_locator.dart" show flagService;import "package:photos/services/photos_contacts_service.dart";String resolveDisplayName(User user) {@@ -18,17 +17,15 @@ String resolveDisplayName(User user) {}String? resolveKnownEmail(User user) {- if (flagService.enableContact) {- final contactUserId = _validContactUserId(user);- final savedEmail = _knownEmailOrNull(- PhotosContactsService.instance.getCachedResolvedEmail(- contactUserId: contactUserId,- email: contactUserId == null ? user.email : null,- ),- );- if (savedEmail != null) {- return savedEmail;- }+ final contactUserId = _validContactUserId(user);+ final savedEmail = _knownEmailOrNull(+ PhotosContactsService.instance.getCachedResolvedEmail(+ contactUserId: contactUserId,+ email: contactUserId == null ? user.email : null,+ ),+ );+ if (savedEmail != null) {+ return savedEmail;}return _knownEmailOrNull(user.email);@@ -46,10 +43,6 @@ bool matchesResolvedContactQuery(User user, String lowerCaseQuery) {}String? _savedContactName(User user) {- if (!flagService.enableContact) {- return null;- }-final contactUserId = _validContactUserId(user);return PhotosContactsService.instance.getCachedSavedName(contactUserId: contactUserId,diff --git a/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dartindex ae863381eb..dcc84cf9a1 100644--- a/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart+++ b/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart@@ -606,7 +606,7 @@ class PersonService {EnteFile file,Face face,) async {- final contact = await _getLinkedContactIfEnabled(person);+ final contact = await _getLinkedContact(person);if (contact == null) {return;}@@ -619,11 +619,9 @@ class PersonService {"Failed to prepare contact avatar for linked person ${person.remoteID}",);}- await _runLinkedContactWriteIfEnabled(- () => _contactsService.setProfilePicture(- contactId: contact.id,- bytes: bytes,- ),+ await _contactsService.setProfilePicture(+ contactId: contact.id,+ bytes: bytes,);}@@ -680,50 +678,22 @@ class PersonService {PersonEntity person,String name,) async {- final contact = await _getLinkedContactIfEnabled(person);+ final contact = await _getLinkedContact(person);if (contact == null) {return;}- await _runLinkedContactWriteIfEnabled(- () => _contactsService.createOrUpdateContact(- contactUserId: contact.contactUserId,- name: name,- birthDate: contact.data?.birthDate,- ),- );- }-- Future<contacts.ContactRecord?> _getLinkedContactIfEnabled(- PersonEntity person,- ) async {- if (!flagService.enableContact) {- return null;- }- final contact = await _contactsService.getContact(- contactUserId: person.data.userID,- email: person.data.email,+ await _contactsService.createOrUpdateContact(+ contactUserId: contact.contactUserId,+ name: name,+ birthDate: contact.data?.birthDate,);- if (contact == null || !flagService.enableContact) {- return null;- }- return contact;}- Future<void> _runLinkedContactWriteIfEnabled(- Future<void> Function() write,- ) async {- if (!flagService.enableContact) {- return;- }- try {- await write();- } on StateError {- if (!flagService.enableContact) {- return;- }- rethrow;- }- }+ Future<contacts.ContactRecord?> _getLinkedContact(PersonEntity person) =>+ _contactsService.getContact(+ contactUserId: person.data.userID,+ email: person.data.email,+ );Future<ManualPersonAssignmentResult> addManualFileAssignments({required String personID,diff --git a/mobile/apps/photos/lib/services/photos_contacts_service.dart b/mobile/apps/photos/lib/services/photos_contacts_service.dartindex 26d680e09c..97e9e0746d 100644--- a/mobile/apps/photos/lib/services/photos_contacts_service.dart+++ b/mobile/apps/photos/lib/services/photos_contacts_service.dart@@ -46,15 +46,9 @@ class PhotosContactsService {bool get hasHydratedCache => _hasHydratedCache;- bool get needsWarmup =>- flagService.enableContact && (!_hasHydratedCache || _readyFuture == null);+ bool get needsWarmup => !_hasHydratedCache || _readyFuture == null;Future<void> ensureReady() async {- if (!flagService.enableContact) {- _sessionGeneration += 1;- _resetSessionState(notify: true);- return;- }final session = _buildSession();if (session == null) {_sessionGeneration += 1;@@ -97,9 +91,6 @@ class PhotosContactsService {int? contactUserId,String? email,}) async {- if (!flagService.enableContact) {- return null;- }final cached = _getCachedContact(contactUserId: contactUserId,email: email,@@ -175,7 +166,7 @@ class PhotosContactsService {if (contactUserId == null) {return null;}- if (!flagService.enableContact || _sessionKey == null) {+ if (_sessionKey == null) {return null;}if (hasResolvedProfilePictureByUserId(contactUserId)) {diff --git a/mobile/apps/photos/lib/ui/social/social_actor_contact_navigation.dart b/mobile/apps/photos/lib/ui/social/social_actor_contact_navigation.dartindex bd959bc802..6fe0c370f8 100644--- a/mobile/apps/photos/lib/ui/social/social_actor_contact_navigation.dart+++ b/mobile/apps/photos/lib/ui/social/social_actor_contact_navigation.dart@@ -3,7 +3,6 @@ import "package:flutter/material.dart";import "package:logging/logging.dart";import "package:photos/models/api/collection/user.dart";import "package:photos/models/search/generic_search_result.dart";-import "package:photos/service_locator.dart" show flagService;import "package:photos/services/contacts/contact_identity_resolver.dart";import "package:photos/services/photos_contacts_service.dart";import "package:photos/services/search_service.dart";@@ -16,9 +15,6 @@ bool canOpenSocialActorContactDestination(User user, {required int currentUserID,}) {- if (!flagService.enableContact) {- return false;- }final userId = user.id;if (userId == null || userId <= 0 || userId == currentUserID) {return false;diff --git a/mobile/apps/photos/lib/ui/social/widgets/resolved_social_user_name.dart b/mobile/apps/photos/lib/ui/social/widgets/resolved_social_user_name.dartindex 0f67e96aaf..5ea9282918 100644--- a/mobile/apps/photos/lib/ui/social/widgets/resolved_social_user_name.dart+++ b/mobile/apps/photos/lib/ui/social/widgets/resolved_social_user_name.dart@@ -5,7 +5,6 @@ import "package:photos/core/event_bus.dart";import "package:photos/events/contacts_changed_event.dart";import "package:photos/events/people_changed_event.dart";import "package:photos/models/api/collection/user.dart";-import "package:photos/service_locator.dart" show flagService;import "package:photos/services/contacts/contact_identity_resolver.dart";typedef ResolvedSocialUserNameBuilder =@@ -35,9 +34,7 @@ class _ResolvedSocialUserNameState extends State<ResolvedSocialUserName> {_contactsChangedSubscription = Bus.instance.on<ContactsChangedEvent>().listen((event) {- if (mounted &&- event.matchesContactUserId(widget.user.id) &&- flagService.enableContact) {+ if (mounted && event.matchesContactUserId(widget.user.id)) {setState(() {});}});diff --git a/mobile/apps/photos/lib/ui/viewer/people/link_email_screen.dart b/mobile/apps/photos/lib/ui/viewer/people/link_email_screen.dartdeleted file mode 100644index 1f6f0831d9..0000000000--- a/mobile/apps/photos/lib/ui/viewer/people/link_email_screen.dart+++ /dev/null@@ -1,413 +0,0 @@-import "dart:async";--import "package:email_validator/email_validator.dart";-import 'package:flutter/material.dart';-import "package:logging/logging.dart";-import "package:photos/core/configuration.dart";-import "package:photos/core/event_bus.dart";-import "package:photos/events/people_changed_event.dart";-import "package:photos/generated/l10n.dart";-import "package:photos/l10n/l10n.dart";-import "package:photos/models/api/collection/user.dart";-import "package:photos/models/ml/face/person.dart";-import "package:photos/services/account/user_service.dart";-import "package:photos/services/machine_learning/face_ml/person/person_service.dart";-import 'package:photos/theme/ente_theme.dart';-import 'package:photos/ui/components/buttons/button_widget.dart';-import 'package:photos/ui/components/captioned_text_widget.dart';-import "package:photos/ui/components/dialog_widget.dart";-import 'package:photos/ui/components/divider_widget.dart';-import 'package:photos/ui/components/menu_item_widget/menu_item_widget.dart';-import 'package:photos/ui/components/menu_section_title.dart';-import 'package:photos/ui/components/models/button_type.dart';-import "package:photos/ui/components/text_input_widget.dart";-import 'package:photos/ui/sharing/user_avator_widget.dart';-import "package:photos/utils/dialog_util.dart";-import "package:photos/utils/person_contact_linking_util.dart";-import "package:photos/utils/share_util.dart";--class LinkEmailScreen extends StatefulWidget {- final String? personID;- final bool isFromSaveOrEditPerson;- const LinkEmailScreen(- this.personID, {- this.isFromSaveOrEditPerson = false,- super.key,- });-- @override- State<StatefulWidget> createState() => _LinkEmailScreen();-}--class _LinkEmailScreen extends State<LinkEmailScreen> {- String? _selectedEmail;- String _newEmail = '';- bool _emailIsValid = false;- bool isKeypadOpen = false;- late List<User> _suggestedUsers;- late List<User> _filteredUsers;- final _logger = Logger('LinkEmailScreen');-- final textFieldFocusNode = FocusNode();- final _textController = TextEditingController();-- @override- void initState() {- super.initState();- _suggestedUsers = _getContacts();- _filteredUsers = _suggestedUsers;- }-- @override- void dispose() {- _textController.dispose();- textFieldFocusNode.dispose();- super.dispose();- }-- @override- Widget build(BuildContext context) {- isKeypadOpen = MediaQuery.viewInsetsOf(context).bottom > 100;-- return Scaffold(- resizeToAvoidBottomInset: isKeypadOpen,- appBar: AppBar(title: Text(AppLocalizations.of(context).linkEmail)),- body: Column(- mainAxisAlignment: MainAxisAlignment.start,- crossAxisAlignment: CrossAxisAlignment.start,- children: [- const SizedBox(height: 12),- Padding(- padding: const EdgeInsets.symmetric(horizontal: 16.0),- child: MenuSectionTitle(- title: AppLocalizations.of(context).addANewEmail,- ),- ),- Padding(- padding: const EdgeInsets.symmetric(horizontal: 16.0),- child: TextInputWidget(- hintText: AppLocalizations.of(context).email,- textEditingController: _textController,- shouldSurfaceExecutionStates: false,- onChange: (value) {- _filteredUsers = _suggestedUsers- .where(- (element) => element.email.toLowerCase().contains(- _textController.text.trim().toLowerCase(),- ),- )- .toList();-- final filterdFilesHaveSelectedEmail = _filteredUsers.any(- (user) => user.email == _selectedEmail,- );- if (!filterdFilesHaveSelectedEmail) {- _selectedEmail = null;- }-- _newEmail = value.trim();- _emailIsValid = EmailValidator.validate(_newEmail);- setState(() {});- },- focusNode: textFieldFocusNode,- keyboardType: TextInputType.emailAddress,- shouldUnfocusOnClearOrSubmit: true,- autoCorrect: false,- ),- ),- const SizedBox(height: 16),- Expanded(- child: Padding(- padding: const EdgeInsets.symmetric(horizontal: 16.0),- child: Column(- children: [- _filteredUsers.isNotEmpty- ? MenuSectionTitle(- title: AppLocalizations.of(- context,- ).orPickFromYourContacts,- )- : const SizedBox.shrink(),- Expanded(- child: ListView.builder(- physics: const BouncingScrollPhysics(),- itemBuilder: (context, index) {- final currentUser = _filteredUsers[index];- return Column(- children: [- MenuItemWidget(- key: ValueKey(currentUser.email),- captionedTextWidget: CaptionedTextWidget(- title: currentUser.email,- ),- leadingIconSize: 24.0,- leadingIconWidget: UserAvatarWidget(- currentUser,- type: AvatarType.medium,- ),- menuItemColor: getEnteColorScheme(- context,- ).fillFaint,- pressedColor: getEnteColorScheme(- context,- ).fillFaint,- trailingIcon:- (_selectedEmail == currentUser.email)- ? Icons.check- : null,- onTap: () async {- textFieldFocusNode.unfocus();- if (_selectedEmail == currentUser.email) {- _selectedEmail = null;- } else {- _selectedEmail = currentUser.email;- }- setState(() => {});- },- isTopBorderRadiusRemoved: index > 0,- isBottomBorderRadiusRemoved:- index < (_filteredUsers.length - 1),- ),- (index == (_filteredUsers.length - 1))- ? const SizedBox.shrink()- : DividerWidget(- dividerType: DividerType.menu,- bgColor: getEnteColorScheme(- context,- ).fillFaint,- ),- ],- );- },- itemCount: _filteredUsers.length,- ),- ),- ],- ),- ),- ),- SafeArea(- child: Padding(- padding: const EdgeInsets.only(- top: 8,- bottom: 8,- left: 16,- right: 16,- ),- child: Column(- crossAxisAlignment: CrossAxisAlignment.center,- children: [- const SizedBox(height: 8),- ButtonWidget(- buttonType: ButtonType.primary,- buttonSize: ButtonSize.large,- labelText: AppLocalizations.of(context).link,- isDisabled:- !_emailIsValid && (_selectedEmail?.isEmpty ?? true),- onTap: _onLinkButtonTap,- ),- const SizedBox(height: 12),- ],- ),- ),- ),- ],- ),- );- }-- Future<void> _onLinkButtonTap() async {- final newEmail = _emailIsValid ? _newEmail : _selectedEmail!;- if (widget.isFromSaveOrEditPerson) {- await _emailHoldsEnteAccount(newEmail).then((value) {- if (value) {- if (!mounted) return;- Navigator.of(context).pop(newEmail);- }- });- } else {- try {- final result = await linkEmailToPerson(- newEmail,- widget.personID!,- context,- );- if (!result) {- _textController.clear();- return;- }-- if (!mounted) return;- Navigator.of(context).pop(newEmail);- } catch (e) {- if (!mounted) return;- await showGenericErrorDialog(context: context, error: e);- _logger.severe("Failed to link email to person", e);- }- }- }-- List<User> _getContacts() {- final userEmailsToAviod = PersonService- .instance- .emailToPartialPersonDataMapCache- .keys- .toSet();- final relevantUsers = UserService.instance.getRelevantContacts()- ..removeWhere((user) => userEmailsToAviod.contains(user.email));-- relevantUsers.sort((a, b) => (a.email).compareTo(b.email));-- final ownerEmail = Configuration.instance.getEmail();- if (ownerEmail != null && !userEmailsToAviod.contains(ownerEmail)) {- relevantUsers.insert(0, User(email: ownerEmail));- _selectedEmail = ownerEmail;- }-- return relevantUsers;- }-- Future<bool> _emailHoldsEnteAccount(String email) async {- String? publicKey;-- try {- publicKey = await UserService.instance.getPublicKey(email);- } catch (e) {- _logger.severe("Failed to get public key", e);- if (!mounted) return false;- await showGenericErrorDialog(context: context, error: e);- return false;- }- // getPublicKey can return null when no user is associated with given- // email id- if (publicKey == null || publicKey == '') {- if (!mounted) return false;- await showDialogWidget(- context: context,- title: AppLocalizations.of(context).noEnteAccountExclamation,- body: context.l10n.emailDoesNotHaveEnteAccount(email: email),- icon: Icons.info_outline,- isDismissible: true,- buttons: [- ButtonWidget(- buttonType: ButtonType.neutral,- icon: Icons.adaptive.share,- labelText: AppLocalizations.of(context).invite,- isInAlert: true,- onTap: () async {- unawaited(- shareText(- AppLocalizations.of(context).shareTextRecommendUsingEnte,- ),- );- },- ),- ButtonWidget(- buttonType: ButtonType.secondary,- labelText: AppLocalizations.of(context).cancel,- isInAlert: true,- ),- ],- );- return false;- } else {- return true;- }- }-- Future<bool> linkEmailToPerson(- String email,- String personID,- BuildContext context,- ) async {- final linkedPerson = await findPersonLinkedToEmail(- email,- excludedPersonId: personID,- );- if (linkedPerson != null) {- if (!context.mounted) return false;- await showAlreadyLinkedEmailDialog(- context,- email,- linkedPerson: linkedPerson,- );- return false;- }-- String? publicKey;-- try {- publicKey = await UserService.instance.getPublicKey(email);- } catch (e) {- _logger.severe("Failed to get public key", e);- if (!context.mounted) return false;- await showGenericErrorDialog(context: context, error: e);- return false;- }- // getPublicKey can return null when no user is associated with given- // email id- if (publicKey == null || publicKey == '') {- if (!context.mounted) return false;- await showDialogWidget(- context: context,- title: AppLocalizations.of(context).noEnteAccountExclamation,- icon: Icons.info_outline,- body: AppLocalizations.of(context).emailNoEnteAccount(email: email),- isDismissible: true,- buttons: [- ButtonWidget(- buttonType: ButtonType.neutral,- icon: Icons.adaptive.share,- labelText: AppLocalizations.of(context).invite,- isInAlert: true,- onTap: () async {- unawaited(- shareText(- AppLocalizations.of(context).shareTextRecommendUsingEnte,- ),- );- },- ),- ],- );- return false;- } else {- try {- final personEntity = await PersonService.instance.getPerson(personID);- late final PersonEntity updatedPerson;- final currentUserID = currentUserIDForContactLinkEmail(email);-- if (personEntity == null) {- throw AssertionError(- "Cannot link email to non-existent person. First save the person",- );- } else if (currentUserID != null) {- updatedPerson = await PersonService.instance.updateAttributes(- personID,- email: email,- userID: currentUserID,- );- } else {- updatedPerson = await PersonService.instance.updateAttributes(- personID,- email: email,- );- }-- Bus.instance.fire(- PeopleChangedEvent(- type: PeopleEventType.saveOrEditPerson,- source: "linkEmailToPerson",- person: updatedPerson,- ),- );- return true;- } catch (e) {- _logger.severe("Failed to link email to person", e);- if (!context.mounted) return false;- await showGenericErrorDialog(context: context, error: e);- return false;- }- }- }-}diff --git a/mobile/apps/photos/lib/ui/viewer/people/people_page.dart b/mobile/apps/photos/lib/ui/viewer/people/people_page.dartindex 6a7165864b..66ad752a70 100644--- a/mobile/apps/photos/lib/ui/viewer/people/people_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/people/people_page.dart@@ -9,7 +9,6 @@ import 'package:photos/events/files_updated_event.dart';import 'package:photos/events/local_photos_updated_event.dart';import "package:photos/events/people_changed_event.dart";import "package:photos/generated/l10n.dart";-import "package:photos/l10n/l10n.dart";import 'package:photos/models/file/file.dart';import 'package:photos/models/file_load_result.dart';import 'package:photos/models/gallery_type.dart';@@ -20,7 +19,6 @@ import "package:photos/service_locator.dart";import "package:photos/services/machine_learning/face_ml/feedback/cluster_feedback.dart";import 'package:photos/services/memory_lane/memory_lane_service.dart';import "package:photos/services/search_service.dart";-import "package:photos/ui/components/end_to_end_banner.dart";import 'package:photos/ui/viewer/actions/file_selection_overlay_bar.dart';import 'package:photos/ui/viewer/gallery/gallery.dart';import "package:photos/ui/viewer/gallery/gallery_app_bar_config.dart";@@ -30,7 +28,6 @@ import "package:photos/ui/viewer/gallery/state/gallery_files_inherited_widget.daimport "package:photos/ui/viewer/gallery/state/inherited_search_filter_data.dart";import "package:photos/ui/viewer/gallery/state/search_filter_data_provider.dart";import "package:photos/ui/viewer/gallery/state/selection_state.dart";-import "package:photos/ui/viewer/people/link_email_screen.dart";import "package:photos/ui/viewer/people/memory_lane_banner.dart";import "package:photos/ui/viewer/people/memory_lane_debug_panel.dart";import "package:photos/ui/viewer/people/memory_lane_page.dart";@@ -356,11 +353,6 @@ class _GalleryState extends State<_Gallery> {@overrideWidget build(BuildContext context) {- final showLinkEmailBanner =- !flagService.enableContact &&- !widget.personEntity.data.isIgnored &&- (widget.personEntity.data.email == null ||- widget.personEntity.data.email!.isEmpty);if (widget.showTimelineBanner && !_loggedTimelineImpression) {_timelineLogger.info("banner_impression person=${widget.personEntity.remoteID}",@@ -387,21 +379,6 @@ class _GalleryState extends State<_Gallery> {: [],header: Column(children: [- if (showLinkEmailBanner)- Padding(- padding: const EdgeInsets.only(top: 12, bottom: 8),- child: EndToEndBanner(- title: context.l10n.linkEmail,- caption: context.l10n.linkEmailToContactBannerCaption,- leadingIcon: Icons.email_outlined,- onTap: () async {- await routeToPage(- context,- LinkEmailScreen(widget.personEntity.remoteID),- );- },- ),- ),MemoryLaneBannerSection(showBanner: widget.memoryLaneEnabled && widget.showTimelineBanner,person: widget.personEntity,diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dartindex 138190757c..f7d342e5e3 100644--- a/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart@@ -22,7 +22,6 @@ import "package:photos/models/search/generic_search_result.dart";import "package:photos/models/search/search_constants.dart";import "package:photos/models/search/search_result.dart";import "package:photos/models/selected_files.dart";-import "package:photos/service_locator.dart";import "package:photos/services/photos_contacts_service.dart";import "package:photos/theme/colors.dart";import "package:photos/theme/ente_theme.dart";@@ -105,7 +104,7 @@ class _ContactResultPageState extends State<ContactResultPage> {initialGalleryFilter: widget.searchResult.getHierarchicalSearchFilter(),);- if (flagService.enableContact && _contactUserId != null) {+ if (_contactUserId != null) {_refreshSavedContact();_contactsChangedEvent = Bus.instance.on<ContactsChangedEvent>().listen((event,@@ -240,7 +239,7 @@ class _ContactResultPageState extends State<ContactResultPage> {}Widget? _buildContactHeader(BuildContext context) {- if (flagService.enableContact && _contactUserId != null) {+ if (_contactUserId != null) {if (!_resolvedSavedContact) {return const Padding(padding: EdgeInsets.only(top: 20, bottom: 8),@@ -293,7 +292,6 @@ class _ContactResultPageState extends State<ContactResultPage> {}bool get _shouldShowUnsavedContactEmptyState =>- flagService.enableContact &&_contactUserId != null &&_resolvedSavedContact &&_savedContact == null &&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 7d215b7b87..d1cb45b75f 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@@ -60,8 +60,6 @@ class FlagService {bool get internalOrBetaUser => internalUser || betaUser;- bool get enableContact => internalUser;-bool get enableStripe => Platform.isIOS ? false : flags.enableStripe;bool get mapEnabled => flags.mapEnabled;