High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): correct filter default and UI desync in similar photos search (#27516)
TheBestX11fe2bf0c6dd27
diff --git a/mobile/lib/presentation/pages/search/drift_search.page.dart b/mobile/lib/presentation/pages/search/drift_search.page.dartindex 881daf9d38..c5d7d0f36d 100644--- a/mobile/lib/presentation/pages/search/drift_search.page.dart+++ b/mobile/lib/presentation/pages/search/drift_search.page.dart@@ -106,10 +106,17 @@ class DriftSearchPage extends HookConsumerWidget {Future.microtask(() {textSearchController.clear();+ peopleCurrentFilterWidget.value = null;+ dateRangeCurrentFilterWidget.value = null;+ cameraCurrentFilterWidget.value = null;+ tagCurrentFilterWidget.value = null;+ mediaTypeCurrentFilterWidget.value = null;+ ratingCurrentFilterWidget.value = null;+ displayOptionCurrentFilterWidget.value = null;+ locationCurrentFilterWidget.value = preFilter.location.city != null+ ? Text(preFilter.location.city!, style: context.textTheme.labelLarge)+ : null;search(preFilter);- if (preFilter.location.city != null) {- locationCurrentFilterWidget.value = Text(preFilter.location.city!, style: context.textTheme.labelLarge);- }});return null;diff --git a/mobile/lib/presentation/widgets/action_buttons/similar_photos_action_button.widget.dart b/mobile/lib/presentation/widgets/action_buttons/similar_photos_action_button.widget.dartindex 0acbbce613..42dcfa683a 100644--- a/mobile/lib/presentation/widgets/action_buttons/similar_photos_action_button.widget.dart+++ b/mobile/lib/presentation/widgets/action_buttons/similar_photos_action_button.widget.dart@@ -37,7 +37,7 @@ class SimilarPhotosActionButton extends ConsumerWidget {date: SearchDateFilter(),display: SearchDisplayFilters(isNotInAlbum: false, isArchive: false, isFavorite: false),rating: SearchRatingFilter(),- mediaType: AssetType.image,+ mediaType: AssetType.other,),);