π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: remove shrink wrap and use casting for GenericSearchResult
Prateek Sunalc865e263e575
diff --git a/mobile/lib/services/people_home_widget_service.dart b/mobile/lib/services/people_home_widget_service.dartindex 39eddd0694..d9f618f6fc 100644--- a/mobile/lib/services/people_home_widget_service.dart+++ b/mobile/lib/services/people_home_widget_service.dart@@ -291,7 +291,7 @@ class PeopleHomeWidgetService {if (peopleIds == null || peopleIds.isEmpty) {// Search Filter with face and pick top two facesfinal searchFilter = await SectionType.face.getData(null).then(- (value) => List<GenericSearchResult>.from(value).where(+ (value) => (value as List<GenericSearchResult>).where((element) => (element.params[kPersonParamID] as String?) != null,),);diff --git a/mobile/lib/ui/settings/widgets/people_widget_settings.dart b/mobile/lib/ui/settings/widgets/people_widget_settings.dartindex 760d7df100..564aa736e5 100644--- a/mobile/lib/ui/settings/widgets/people_widget_settings.dart+++ b/mobile/lib/ui/settings/widgets/people_widget_settings.dart@@ -122,7 +122,7 @@ class _PeopleWidgetSettingsState extends State<PeopleWidgetSettings> {),)else- SliverToBoxAdapter(+ SliverFillRemaining(child: PeopleSectionAllWidget(selectedPeople: _selectedPeople,namedOnly: true,diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/lib/ui/viewer/search/result/people_section_all_page.dartindex 5237a62890..abeadc2fa9 100644--- a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart+++ b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart@@ -66,7 +66,7 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {Future<List<GenericSearchResult>> getResults() async {final results =- List<GenericSearchResult>.from(await SectionType.face.getData(context));+ await SectionType.face.getData(context) as List<GenericSearchResult>;if (widget.namedOnly) {results.removeWhere(@@ -126,8 +126,6 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {horizontalEdgePadding,96,),- shrinkWrap: true,- primary: false,gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(mainAxisSpacing: gridPadding,crossAxisSpacing: gridPadding,diff --git a/mobile/lib/ui/viewer/search_tab/people_section.dart b/mobile/lib/ui/viewer/search_tab/people_section.dartindex 993c31a99a..2f833b4ece 100644--- a/mobile/lib/ui/viewer/search_tab/people_section.dart+++ b/mobile/lib/ui/viewer/search_tab/people_section.dart@@ -51,12 +51,10 @@ class _PeopleSectionState extends State<PeopleSection> {for (Stream<Event> stream in streamsToListenTo) {streamSubscriptions.add(stream.listen((event) async {- _examples = await widget.sectionType- .getData(- context,- limit: kSearchSectionLimit,- )- .then((value) => List.from(value));+ _examples = await widget.sectionType.getData(+ context,+ limit: kSearchSectionLimit,+ ) as List<GenericSearchResult>;setState(() {});}),);