π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Regression dumb fix
laurenspriem48e78d170d1c
diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/lib/ui/viewer/people/cluster_page.dartindex ec111ce657..f6b720f023 100644--- a/mobile/lib/ui/viewer/people/cluster_page.dart+++ b/mobile/lib/ui/viewer/people/cluster_page.dart@@ -184,7 +184,12 @@ class _ClusterPageState extends State<ClusterPage> {context,clusterID: widget.clusterID,);- if (result != null && result is PersonEntity) {+ if (result != null &&+ result is (PersonEntity, EnteFile)) {+ Navigator.pop(context);+ // ignore: unawaited_futures+ routeToPage(context, PeoplePage(person: result.$1));+ } else if (result != null && result is PersonEntity) {Navigator.pop(context);// ignore: unawaited_futuresrouteToPage(context, PeoplePage(person: result));diff --git a/mobile/lib/ui/viewer/people/people_app_bar.dart b/mobile/lib/ui/viewer/people/people_app_bar.dartindex 213c8fc84b..d53059327f 100644--- a/mobile/lib/ui/viewer/people/people_app_bar.dart+++ b/mobile/lib/ui/viewer/people/people_app_bar.dart@@ -9,6 +9,7 @@ import "package:photos/events/people_changed_event.dart";import 'package:photos/events/subscription_purchased_event.dart';import "package:photos/face/model/person.dart";import "package:photos/generated/l10n.dart";+import "package:photos/models/file/file.dart";import 'package:photos/models/gallery_type.dart';import 'package:photos/models/selected_files.dart';import 'package:photos/services/collections_service.dart';@@ -314,7 +315,10 @@ class _AppBarWidgetState extends State<PeopleAppBar> {clusterID: widget.person.data.assigned!.first.id,);Navigator.pop(context);- if (result != null && result is PersonEntity) {+ if (result != null && result is (PersonEntity, EnteFile)) {+ // ignore: unawaited_futures+ routeToPage(context, PeoplePage(person: result.$1));+ } else if (result != null && result is PersonEntity) {// ignore: unawaited_futuresrouteToPage(context, PeoplePage(person: result));}diff --git a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dartindex 9615ce6da7..c1f873c2a2 100644--- a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart+++ b/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart@@ -303,10 +303,11 @@ class _PersonClustersState extends State<PersonReviewClusterSuggestion> {context,clusterID: clusterID,);- if (result == null || result is! PersonEntity) {- return;+ if (result != null &&+ (result is (PersonEntity, EnteFile) ||+ result is PersonEntity)) {+ await _rejectSuggestion(clusterID, numberOfSuggestions);}- await _rejectSuggestion(clusterID, numberOfSuggestions);},),],diff --git a/mobile/lib/ui/viewer/search_tab/people_section.dart b/mobile/lib/ui/viewer/search_tab/people_section.dartindex b0d8c351ae..0daff83d15 100644--- a/mobile/lib/ui/viewer/search_tab/people_section.dart+++ b/mobile/lib/ui/viewer/search_tab/people_section.dart@@ -5,6 +5,7 @@ import "package:flutter/material.dart";import "package:photos/core/constants.dart";import "package:photos/events/event.dart";import "package:photos/face/model/person.dart";+import "package:photos/models/file/file.dart";import "package:photos/models/search/album_search_result.dart";import "package:photos/models/search/generic_search_result.dart";import "package:photos/models/search/recent_searches.dart";@@ -265,8 +266,11 @@ class SearchExample extends StatelessWidget {context,clusterID: int.parse(searchResult.name()),);- if (result != null && result is PersonEntity) {- // Navigator.pop(context);+ if (result != null &&+ result is (PersonEntity, EnteFile)) {+ // ignore: unawaited_futures+ routeToPage(context, PeoplePage(person: result.$1));+ } else if (result != null && result is PersonEntity) {// ignore: unawaited_futuresrouteToPage(context, PeoplePage(person: result));}