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

This reverts commit 4532b4ea8f.
This commit is contained in:
ashilkn
2024-11-26 18:03:31 +05:30
parent 15f39901c9
commit cec3131a2e
5 changed files with 9 additions and 11 deletions

View File

@@ -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 -->

View File

@@ -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>

View File

@@ -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>

View File

@@ -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(

View File

@@ -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",
),
),
);