Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Chore

ashilkn3f21f5afdd7f
diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dart
index 901e3a4206..d214808c72 100644
--- a/mobile/lib/services/collections_service.dart
+++ b/mobile/lib/services/collections_service.dart
@@ -68,6 +68,8 @@ class CollectionsService {
Collection? cachedUncategorizedCollection;
final Map<String, EnteFile> _coverCache = <String, EnteFile>{};
final Map<int, int> _countCache = <int, int>{};
+
+ //Used for links-in-app
final _cachedPublicAlbumToken = <int, String>{};
final _cachedPublicAlbumJWT = <int, String>{};
final _cachedPublicCollectionID = <int>[];
diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 5942db1e3e..de08d14dfa 100644
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -846,7 +846,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
final collection = widget.collection;
try {
if (galleryType == GalleryType.sharedPublicCollection &&
- collection!.isEnableCollect()) {
+ collection!.isCollectEnabledForPublicLink()) {
final authToken = await CollectionsService.instance
.getPublicAlbumToken(collection.id);
final albumKey =