Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] open owned collection without fetching from the server

Aman Raj Singh Mouryab3f332cbb5c4
diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart
index 8a92c87b59..51a519f1fb 100644
--- a/mobile/lib/ui/tabs/home_widget.dart
+++ b/mobile/lib/ui/tabs/home_widget.dart
@@ -242,6 +242,17 @@ class _HomeWidgetState extends State<HomeWidget> {
bool result = true;
final Collection collection =
await CollectionsService.instance.getPublicCollection(context, uri);
+
+ if (collection.owner!.id! == Configuration.instance.getUserID()) {
+ await routeToPage(
+ context,
+ CollectionPage(
+ CollectionWithThumbnail(collection, null),
+ ),
+ );
+ return;
+ }
+
final publicUrl = collection.publicURLs![0];
if (publicUrl!.passwordEnabled) {
await showTextInputDialog(