Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile] Fix self-hosted family setup (#13192)

neeraj-pilot4b6f1c1a834c
diff --git a/mobile/apps/photos/changes/self-hosted-family-setup.md b/mobile/apps/photos/changes/self-hosted-family-setup.md
new file mode 100644
index 0000000000..95b69d5d82
--- /dev/null
+++ b/mobile/apps/photos/changes/self-hosted-family-setup.md
@@ -0,0 +1 @@
+- Fixed family setup for self-hosted accounts.
diff --git a/mobile/apps/photos/lib/ui/family/family_plan_page.dart b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
index 118625a203..0e897467b5 100644
--- a/mobile/apps/photos/lib/ui/family/family_plan_page.dart
+++ b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
@@ -72,6 +72,7 @@ class _FamilyPlanPageState extends State<FamilyPlanPage> {
StreamSubscription<PeopleChangedEvent>? _peopleChangedSubscription;
bool get _isFreeUser =>
+ endpointConfig.isProduction &&
_userDetails.subscription.productID == freeProductID &&
!_userDetails.hasPaidAddon();