Skip to content

armgit / ente

Public Imported from GitHub
0

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

Revert "[mob][photos] Open albums.ente.io links and not albums.ente.sh"

ashilkncec3131a2e6c
diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml
index 808229a141..0117b19f95 100644
--- a/mobile/android/app/src/main/AndroidManifest.xml
+++ b/mobile/android/app/src/main/AndroidManifest.xml
@@ -53,7 +53,7 @@
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
- android:host="albums.ente.io"/>
+ android:host="albums.ente.sh"/>
</intent-filter>
<!-- file provider to share files having a file:// URI -->
diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist
index 0956f839c7..a71a377eaf 100644
--- a/mobile/ios/Runner/Info.plist
+++ b/mobile/ios/Runner/Info.plist
@@ -50,7 +50,7 @@
</dict>
<dict>
<key>CFBundleURLName</key>
- <string>albums.ente.io</string>
+ <string>albums.ente.sh</string>
<key>CFBundleURLSchemes</key>
<array>
<string>https</string>
diff --git a/mobile/ios/Runner/Runner.entitlements b/mobile/ios/Runner/Runner.entitlements
index 970467a5bb..77b83d3b8c 100644
--- a/mobile/ios/Runner/Runner.entitlements
+++ b/mobile/ios/Runner/Runner.entitlements
@@ -7,7 +7,7 @@
<key>com.apple.developer.associated-domains</key>
<array>
<string>webcredentials:web.ente.io</string>
- <string>applinks:albums.ente.io</string>
+ <string>applinks:albums.ente.sh</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart
index 12fa0328aa..18d45818d0 100644
--- a/mobile/lib/ui/tabs/home_widget.dart
+++ b/mobile/lib/ui/tabs/home_widget.dart
@@ -412,7 +412,7 @@ class _HomeWidgetState extends State<HomeWidget> {
_intentDataStreamSubscription =
ReceiveSharingIntent.instance.getMediaStream().listen(
(List<SharedMediaFile> value) {
- if (value[0].path.contains("albums.ente.io")) {
+ if (value[0].path.contains("albums.ente.sh")) {
final uri = Uri.parse(value[0].path);
_handlePublicAlbumLink(uri);
return;
@@ -475,7 +475,7 @@ class _HomeWidgetState extends State<HomeWidget> {
.getInitialMedia()
.then((List<SharedMediaFile> value) {
if (mounted) {
- if (value[0].path.contains("albums.ente.io")) {
+ if (value[0].path.contains("albums.ente.sh")) {
final uri = Uri.parse(value[0].path);
_handlePublicAlbumLink(uri);
return;
@@ -508,7 +508,7 @@ class _HomeWidgetState extends State<HomeWidget> {
try {
final initialUri = await getInitialUri();
if (initialUri != null) {
- if (initialUri.toString().contains("albums.ente.io")) {
+ if (initialUri.toString().contains("albums.ente.sh")) {
await _handlePublicAlbumLink(initialUri);
} else {
_logger.info(
@@ -527,7 +527,7 @@ class _HomeWidgetState extends State<HomeWidget> {
_publicAlbumLinkSubscription = uriLinkStream.listen(
(Uri? uri) {
if (uri != null) {
- if (uri.toString().contains("albums.ente.io")) {
+ if (uri.toString().contains("albums.ente.sh")) {
_handlePublicAlbumLink(uri);
} else {
_logger.info(
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 6e77ebe26f..2eb32bda82 100644
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -203,9 +203,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
galleryType != GalleryType.quickLink) {
showToast(
context,
- S
- .of(context)
- .typeOfGallerGallerytypeIsNotSupportedForRename("$galleryType"),
+ S.of(context).typeOfGallerGallerytypeIsNotSupportedForRename("$galleryType"),
);
return;
@@ -866,7 +864,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
MaterialPageRoute(
builder: (context) => WebPage(
widget.title ?? "",
- "https://albums.ente.io/?t=$authToken#$albumKey",
+ "https://albums.ente.sh/?t=$authToken#$albumKey",
),
),
);