Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: update code to check correctly

Prateek Sunal1ce749e93e9e
diff --git a/mobile/apps/photos/ios/Runner/AppDelegate.swift b/mobile/apps/photos/ios/Runner/AppDelegate.swift
index ea777b81ad..8673b08bc4 100644
--- a/mobile/apps/photos/ios/Runner/AppDelegate.swift
+++ b/mobile/apps/photos/ios/Runner/AppDelegate.swift
@@ -28,10 +28,10 @@ import workmanager
// Retrieve the link from parameters
if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {
// only accept non-homewidget urls for AppLinks
- if let host = url.host, !host.contains("&homeWidget") {
+ if !url.absoluteString.contains("&homeWidget") {
AppLinks.shared.handleLink(url: url)
- // We have a link, propagate it to your Flutter app or not
- return true // Returning true will stop the propagation to other packages
+ // link is handled, stop propagation
+ return true
}
}