Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

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.dart
index 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 _AlbumSelectionActionWidgetState
Future<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();
}