π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: Allow pin/unpin for shared favorites albums
Prateek Sunal32523548a27b
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dartindex fc22fac659..e74b8c2159 100644--- a/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart@@ -278,31 +278,23 @@ class _AlbumSelectionActionWidgetStateFuture<void> _onPinClickForSharee() async {for (final collection in widget.selectedAlbums.albums) {- if (collection.type == CollectionType.favorites ||- collection.hasShareePinned()) {+ if (collection.hasShareePinned()) {continue;}await updateShareeOrder(context, collection, 1);}- if (hasFavorites) {- _showFavToast();- }widget.selectedAlbums.clearAll();}Future<void> _onUnpinClickForSharee() async {for (final collection in widget.selectedAlbums.albums) {- if (collection.type == CollectionType.favorites ||- !collection.hasShareePinned()) {+ if (!collection.hasShareePinned()) {continue;}await updateShareeOrder(context, collection, 0);}- if (hasFavorites) {- _showFavToast();- }widget.selectedAlbums.clearAll();}