π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Revert "[mob][photos] Add option to make 'only them' filter work a little different only for testing, for feedback on which option is better"
ashilkn219ff7d2e92c
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dartindex fd3213ca91..098845c657 100644--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart@@ -60,23 +60,6 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {final Logger logger = Logger("MLDebugSectionWidget");return Column(children: [- MenuItemWidget(- captionedTextWidget: const CaptionedTextWidget(- title:- "Exclude files of face IDs that are not in any cluster on applying 'only them' filter.",- ),- trailingWidget: ToggleSwitchWidget(- value: () => localSettings- .excludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter,- onChanged: () async {- await localSettings- .setExcludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter(- !localSettings- .excludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter,- );- },- ),- ),sectionOptionSpacing,MenuItemWidget(captionedTextWidget: FutureBuilder<IndexStatus>(diff --git a/mobile/lib/utils/hierarchical_search_util.dart b/mobile/lib/utils/hierarchical_search_util.dartindex fe972c3fcf..9bb744a5aa 100644--- a/mobile/lib/utils/hierarchical_search_util.dart+++ b/mobile/lib/utils/hierarchical_search_util.dart@@ -91,13 +91,10 @@ Future<List<EnteFile>> getFilteredFiles(exceptClusters: selectedClusterIDs,);- if (localSettings- .excludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter) {- final filesOfFaceIDsNotInAnyCluster =- await MLDataDB.instance.getAllFileIDsOfFaceIDsNotInAnyCluster();+ final filesOfFaceIDsNotInAnyCluster =+ await MLDataDB.instance.getAllFileIDsOfFaceIDsNotInAnyCluster();- fileIDsToAvoid.addAll(filesOfFaceIDsNotInAnyCluster);- }+ fileIDsToAvoid.addAll(filesOfFaceIDsNotInAnyCluster);final result =intersectionOfSelectedFaceFiltersFileIDs.difference(fileIDsToAvoid);diff --git a/mobile/lib/utils/local_settings.dart b/mobile/lib/utils/local_settings.dartindex 11d07b1c20..e293375653 100644--- a/mobile/lib/utils/local_settings.dart+++ b/mobile/lib/utils/local_settings.dart@@ -17,8 +17,6 @@ class LocalSettings {static const kRateUsPromptThreshold = 2;static const shouldLoopVideoKey = "video.should_loop";static const onGuestViewKey = "on_guest_view";- static const kExcludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter =- "excludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter";final SharedPreferences _prefs;@@ -66,22 +64,6 @@ class LocalSettings {bool get userEnabledMultiplePart =>_prefs.getBool(kEnableMultiplePart) ?? false;- bool get excludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter =>- _prefs.getBool(- kExcludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter,- ) ??- true;-- Future<bool> setExcludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter(- bool value,- ) async {- await _prefs.setBool(- kExcludeFilesOfFaceIDsThatAreNotInAnyClusterOnOnlyThemFilter,- value,- );- return value;- }-Future<bool> setUserEnabledMultiplePart(bool value) async {await _prefs.setBool(kEnableMultiplePart, value);return value;