Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): duplicate server urls returned (#26864)

Mertff936f901d0f
diff --git a/mobile/lib/services/api.service.dart b/mobile/lib/services/api.service.dart
index bc5e46f769..e296ac522d 100644
--- a/mobile/lib/services/api.service.dart
+++ b/mobile/lib/services/api.service.dart
@@ -176,10 +176,6 @@ class ApiService {
if (serverEndpoint != null && serverEndpoint.isNotEmpty) {
urls.add(serverEndpoint);
}
- final serverUrl = Store.tryGet(StoreKey.serverUrl);
- if (serverUrl != null && serverUrl.isNotEmpty) {
- urls.add(serverUrl);
- }
final localEndpoint = Store.tryGet(StoreKey.localEndpoint);
if (localEndpoint != null && localEndpoint.isNotEmpty) {
urls.add(localEndpoint);