High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(mobile): album activity deep link (#23737)
idubnori337e3a8dac4e
diff --git a/mobile/lib/services/deep_link.service.dart b/mobile/lib/services/deep_link.service.dartindex d67362aac2..6ede7f6830 100644--- a/mobile/lib/services/deep_link.service.dart+++ b/mobile/lib/services/deep_link.service.dart@@ -77,6 +77,7 @@ class DeepLinkService {"memory" => await _buildMemoryDeepLink(queryParams['id'] ?? ''),"asset" => await _buildAssetDeepLink(queryParams['id'] ?? '', ref),"album" => await _buildAlbumDeepLink(queryParams['id'] ?? ''),+ "activity" => await _buildActivityDeepLink(queryParams['albumId'] ?? ''),_ => null,};@@ -185,4 +186,18 @@ class DeepLinkService {return AlbumViewerRoute(albumId: album.id);}}++ Future<PageRouteInfo?> _buildActivityDeepLink(String albumId) async {+ if (Store.isBetaTimelineEnabled == false) {+ return null;+ }++ final album = await _betaRemoteAlbumService.get(albumId);++ if (album == null || album.isActivityEnabled == false) {+ return null;+ }++ return DriftActivitiesRoute(album: album);+ }}