π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix album sharing edge cases
AmanRajSinghMouryabbebac7651ee
diff --git a/mobile/apps/photos/lib/ui/sharing/add_people_sheet.dart b/mobile/apps/photos/lib/ui/sharing/add_people_sheet.dartindex b169c0d92e..e56f49d33e 100644--- a/mobile/apps/photos/lib/ui/sharing/add_people_sheet.dart+++ b/mobile/apps/photos/lib/ui/sharing/add_people_sheet.dart@@ -334,7 +334,8 @@ class _AddPeopleSheetState extends State<_AddPeopleSheet> {setState(() {final index = widget.selected.indexWhere((selected) =>- selected.email.toLowerCase() == suggestion.email.toLowerCase(),+ selected.email.trim().toLowerCase() ==+ suggestion.email.trim().toLowerCase(),);if (index == -1) {widget.selected.add(suggestion);@@ -372,7 +373,8 @@ class _AddPeopleSheetState extends State<_AddPeopleSheet> {bool _isSelected(String email) {return widget.selected.any(- (selected) => selected.email.toLowerCase() == email.toLowerCase(),+ (selected) =>+ selected.email.trim().toLowerCase() == email.trim().toLowerCase(),);}diff --git a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dartindex 3b644bb7ed..692be82151 100644--- a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart+++ b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart@@ -76,10 +76,12 @@ class _ShareCollectionPageState extends State<ShareCollectionPage> {if (isOwner) {children.addAll([- if (sortedSharees.isEmpty)- ShareSectionDescription(context.strings.emptyAlbumShareMessage)- else- _participantRoster(userID, sortedSharees),+ if (sortedSharees.isNotEmpty)+ _participantRoster(userID, sortedSharees)+ else if (!hasUrl) ...[+ Center(child: Image.asset("assets/on_device.png")),+ ShareSectionDescription(context.strings.emptyAlbumShareMessage),+ ],const SizedBox(height: Spacing.sm),ButtonComponent(label: context.strings.addPerson,diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 61a7f961d8..c985b9b30b 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -5138,7 +5138,7 @@}}},- "leaveAlbumBody": "{count, plural, =0{You will lose access to this album straight away.} one{They will lose access to the {count} photo you added.} other{They will lose access to the {count} photos you added.}}",+ "leaveAlbumBody": "{count, plural, =0{You will lose access to this album straight away.} one{You will lose access to this album straight away. The {count} photo you added will be removed.} other{You will lose access to this album straight away. The {count} photos you added will be removed.}}","@leaveAlbumBody": {"placeholders": {"count": {