Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Remove webview redirect for trip layout public links

Anand Baburajana5a0470cfe3a
diff --git a/mobile/apps/photos/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
index f681dc5796..58c77e7011 100644
--- a/mobile/apps/photos/lib/ui/tabs/home_widget.dart
+++ b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
@@ -53,7 +53,6 @@ import "package:photos/states/user_details_state.dart";
import "package:photos/theme/colors.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/collections/collection_action_sheet.dart";
-import "package:photos/ui/common/web_page.dart";
import "package:photos/ui/components/buttons/button_widget.dart";
import "package:photos/ui/components/models/button_type.dart";
import "package:photos/ui/extents_page_view.dart";
@@ -357,19 +356,6 @@ class _HomeWidgetState extends State<HomeWidget> {
final shouldShowJoinDialog = uri.queryParameters['action'] == 'join' &&
Configuration.instance.isLoggedIn();
- // Check for trip layout and show in webview
- if (collection.pubMagicMetadata.layout == "trip") {
- await routeToPage(
- context,
- WebPage(
- collection.displayName,
- uri.toString(),
- canOpenInBrowser: true,
- ),
- );
- return;
- }
-
final dialog = createProgressDialog(context, "Loading...");
final publicUrl = collection.publicURLs[0];
if (!publicUrl.enableDownload) {